CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

request for uniformDimensionedVectorField g from objectRegistry region0 failed

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2021, 03:54
Default request for uniformDimensionedVectorField g from objectRegistry region0 failed
  #1
New Member
 
Dylan James
Join Date: Dec 2020
Posts: 7
Rep Power: 5
dylan_OF is on a distinguished road
hi guys:

I get the following error when I execute the postProcess command. Does anyone know how I can fix this?

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v2012 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : postProcess
Date   : Apr 04 2021
Time   : 15:23:59
Host   : dyfluid
PID    : 3421
I/O    : uncollated
Case   : /home/dyfluid/OpenFOAM/OpenFOAM-v2012/run/waveExampleSolitary
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Time = 0

Reading fields:

Executing functionObjects


--> FOAM FATAL ERROR: (openfoam-2012)

    request for uniformDimensionedVectorField g from objectRegistry waveExampleSolitary failed
    available objects of type uniformDimensionedVectorField are
0()

    From const Type& Foam::objectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::UniformDimensionedField<Foam::Vector<double> >]
    in file /home/dyfluid/OpenFOAM/openfoam-master/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 463.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::exitOrAbort(int, bool) at ??:?
#2  Foam::UniformDimensionedField<Foam::Vector<double> > const& Foam::objectRegistry::lookupObject<Foam::UniformDimensionedField<Foam::Vector<double> > >(Foam::word const&, bool) const at ??:?
#3  Foam::functionObjects::interfaceHeight::writePositions() at ??:?
#4  Foam::functionObjects::interfaceHeight::write() at ??:?
#5  Foam::functionObjectList::execute() at ??:?
#6  ? in ~/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/bin/postProcess
#7  ? in ~/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/bin/postProcess
#8  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#9  ? in ~/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/bin/postProcess
Aborted (core dumped)
this is my controlDict file
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v1812                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     interFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         50.0;

deltaT          0.1;

writeControl    adjustableRunTime;

writeInterval   1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo           0.65;

maxAlphaCo      0.65;

maxDeltaT       0.05;


functions
{
    interfaceHeight
    {
    	type		interfaceHeight;
    	libs		("libfieldFunctionObjects.so");
    	alpha		alpha.water;
    	locations	((39.85 1 1));
    }
}


// ************************************************************************* //
the version is v2012
the solver is interFoam

I will be appreciate for any advice.

Last edited by dylan_OF; April 5, 2021 at 01:48.
dylan_OF is offline   Reply With Quote

Old   April 7, 2021, 19:38
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
I would guess that the functionObject wants g loaded, but doesn't load it itself. Solvers now should have a postProcess flag, so that things are just loaded (like the gravity vector) but the solver doesn't progress and just post processes. This would be done with something like :

Code:
 <solver> -postProcess -func
So for your case, I'd guess something like :

Code:
 interFoam -postProcess -func interfaceHeight
Looks like something similar is done in this tutorial : https://develop.openfoam.com/Develop...otation/Allrun

Caelan
dylan_OF likes this.
__________________
Public git repository : https://github.com/clapointe2011/public
clapointe is offline   Reply With Quote

Old   April 7, 2021, 20:37
Default
  #3
New Member
 
Dylan James
Join Date: Dec 2020
Posts: 7
Rep Power: 5
dylan_OF is on a distinguished road
Thank you very much for your reply!So far, I've adopted paraview to implement my requirements.But your suggestion is great and comprehensive, I will try it and feedback the result.
dylan_OF is offline   Reply With Quote

Old   March 11, 2024, 02:44
Default
  #4
New Member
 
Yupeng Duan
Join Date: Aug 2022
Posts: 10
Rep Power: 3
YupengDuan is on a distinguished road
Hi did you solve the problem? I use the interFoam -postProcess -func interfaceHeight but still failed
YupengDuan is offline   Reply With Quote

Reply

Tags
interfaceheight, interfoam, openfoam2012, postprocess


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 03:35
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 15:00
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 09:54
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 18:49.