CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Elements that limit the Courant number (https://www.cfd-online.com/Forums/openfoam-solving/58756-elements-limit-courant-number.html)

skabilan July 1, 2008 21:37

Hi All, Is there a way to k
 
Hi All,

Is there a way to know which elements are responsible for high Courant numbers or which limit the time step in a variable time stepping algorithm? checkMesh does give us some clue but I would like to know the exact elements to improve the mesh quality.

Thanks in advance
Senthil

gschaider July 2, 2008 03:58

Have a look at the Co-utility.
 
Have a look at the Co-utility. It produces a surfaceField with the Courant-number of each face. Problem is that surface-Fields can't be postprocessed using paraview. You've got to convert them into volume-fields. I (and this might come as a surprise) recommend funkySetFields for that task.

Bernhard

skabilan July 2, 2008 17:45

Hi Bernhard, Thanks for the
 
Hi Bernhard,

Thanks for the suggestion. I was wondering if funkySetFields work with OpenFOAM 1.4.1? I get the following compilation error. Any help or thoughts?

Thanks
Senthil

bigbox128% wmake
Making dependency list for source file ValueExpressionParser.C
Making dependency list for source file ValueExpressionLexer.C
SOURCE=ValueExpressionParser.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionParser.o
ValueExpressionParser.tab.cc: In member function ‚unsigned char ve::ValueExpressionParser::yytranslate_(int)‚:
ValueExpressionParser.tab.cc:1814: warning: use of old-style cast
SOURCE=ValueExpressionLexer.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionLexer.o
ValueExpressionLexer.C:245: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
lex.ve.c: In function ‚int velex(ve::ValueExpressionParser::semantic_type*, ve::location*, ValueExpressionDriver&)‚:
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3910: warning: use of old-style cast
lex.ve.c:4229: warning: use of old-style cast
lex.ve.c: In function ‚int yy_get_next_buffer()‚:
lex.ve.c:4397: warning: use of old-style cast
lex.ve.c:4424: warning: use of old-style cast
lex.ve.c:4437: warning: use of old-style cast
lex.ve.c:4438: warning: use of old-style cast
lex.ve.c:4459: warning: use of old-style cast
lex.ve.c: In function ‚yy_state_type yy_get_previous_state()‚:
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c: In function ‚int yyinput()‚:
lex.ve.c:4664: warning: use of old-style cast
lex.ve.c: In function ‚yy_buffer_state* ve_create_buffer(FILE*, int)‚:
lex.ve.c:4741: warning: use of old-style cast
lex.ve.c:4750: warning: use of old-style cast
lex.ve.c: In function ‚void ve_delete_buffer(yy_buffer_state*)‚:
lex.ve.c:4773: warning: use of old-style cast
lex.ve.c:4776: warning: use of old-style cast
lex.ve.c:4778: warning: use of old-style cast
lex.ve.c: In function ‚yy_buffer_state* ve_scan_buffer(char*, yy_size_t)‚:
lex.ve.c:4857: warning: use of old-style cast
lex.ve.c: In function ‚yy_buffer_state* ve_scan_bytes(const char*, int)‚:
lex.ve.c:4911: warning: use of old-style cast
lex.ve.c: In function ‚void yy_push_state(int)‚:
lex.ve.c:4950: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c: In function ‚void* yy_flex_alloc(yy_size_t)‚:
lex.ve.c:5061: warning: use of old-style cast
lex.ve.c: In function ‚void* yy_flex_realloc(void*, yy_size_t)‚:
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c: At global scope:
lex.ve.c:4936: warning: ‚void yy_push_state(int)‚ defined but not used
lex.ve.c:4969: warning: ‚void yy_pop_state()‚ defined but not used
lex.ve.c:4980: warning: ‚int yy_top_state()‚ defined but not used
SOURCE=ValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionDriver.o
ValueExpressionDriver.C:9:32: error: fvPatchFieldFields.H: No such file or directory
ValueExpressionDriver.C: In member function ‚void ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = double]‚:
ValueExpressionDriver.C:467: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In member function ‚void ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = Foam::Vector<double>]‚:
ValueExpressionDriver.C:504: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C: In static member function ‚static void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = double]‚:
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to ‚Foam::fixedValueFvPatchField<double>::fixedValueF vPatchField(const Foam::fvPatch&, Foam::Field<double>&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In static member function ‚static void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = Foam::Vector<double>]‚:
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to ‚Foam::fixedValueFvPatchField<foam::vector<double> >::fixedValueFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
make: *** [Make/linux64GccDPOpt/ValueExpressionDriver.o] Error 1

ash July 2, 2008 18:06

ValueExpressionDriver.C:9:32:
 
ValueExpressionDriver.C:9:32: error: fvPatchFieldFields.H: No such file or directory


I took, this line from your error message...

So check its location in the file where depedencies for funkysetFields are written. I guess this should rectify this problem.

skabilan July 2, 2008 18:27

Hi Arun, Thanks for the hel
 
Hi Arun,

Thanks for the help! I guess it has to be fvPatchFields.H instead of fvPatchFieldFields.H in the ValueExpressionDriver.C. Now i get the following error message. Does the error seem familiar to you?

Senthil

bigbox114% wmake
Making dependency list for source file ValueExpressionParser.C
Making dependency list for source file ValueExpressionLexer.C
Making dependency list for source file ValueExpressionDriver.C
SOURCE=ValueExpressionParser.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionParser.o
ValueExpressionParser.tab.cc: In member function ‚unsigned char ve::ValueExpressionParser::yytranslate_(int)‚:
ValueExpressionParser.tab.cc:1814: warning: use of old-style cast
SOURCE=ValueExpressionLexer.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionLexer.o
ValueExpressionLexer.C:245: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
lex.ve.c: In function ‚int velex(ve::ValueExpressionParser::semantic_type*, ve::location*, ValueExpressionDriver&)‚:
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3910: warning: use of old-style cast
lex.ve.c:4229: warning: use of old-style cast
lex.ve.c: In function ‚int yy_get_next_buffer()‚:
lex.ve.c:4397: warning: use of old-style cast
lex.ve.c:4424: warning: use of old-style cast
lex.ve.c:4437: warning: use of old-style cast
lex.ve.c:4438: warning: use of old-style cast
lex.ve.c:4459: warning: use of old-style cast
lex.ve.c: In function ‚yy_state_type yy_get_previous_state()‚:
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c: In function ‚int yyinput()‚:
lex.ve.c:4664: warning: use of old-style cast
lex.ve.c: In function ‚yy_buffer_state* ve_create_buffer(FILE*, int)‚:
lex.ve.c:4741: warning: use of old-style cast
lex.ve.c:4750: warning: use of old-style cast
lex.ve.c: In function ‚void ve_delete_buffer(yy_buffer_state*)‚:
lex.ve.c:4773: warning: use of old-style cast
lex.ve.c:4776: warning: use of old-style cast
lex.ve.c:4778: warning: use of old-style cast
lex.ve.c: In function ‚yy_buffer_state* ve_scan_buffer(char*, yy_size_t)‚:
lex.ve.c:4857: warning: use of old-style cast
lex.ve.c: In function ‚yy_buffer_state* ve_scan_bytes(const char*, int)‚:
lex.ve.c:4911: warning: use of old-style cast
lex.ve.c: In function ‚void yy_push_state(int)‚:
lex.ve.c:4950: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c: In function ‚void* yy_flex_alloc(yy_size_t)‚:
lex.ve.c:5061: warning: use of old-style cast
lex.ve.c: In function ‚void* yy_flex_realloc(void*, yy_size_t)‚:
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c: At global scope:
lex.ve.c:4936: warning: ‚void yy_push_state(int)‚ defined but not used
lex.ve.c:4969: warning: ‚void yy_pop_state()‚ defined but not used
lex.ve.c:4980: warning: ‚int yy_top_state()‚ defined but not used
SOURCE=ValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionDriver.o
ValueExpressionDriver.C: In member function ‚void ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = double]‚:
ValueExpressionDriver.C:467: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In member function ‚void ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = Foam::Vector<double>]‚:
ValueExpressionDriver.C:504: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C: In static member function ‚static void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = double]‚:
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to ‚Foam::fixedValueFvPatchField<double>::fixedValueF vPatchField(const Foam::fvPatch&, Foam::Field<double>&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In static member function ‚static void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = Foam::Vector<double>]‚:
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to ‚Foam::fixedValueFvPatchField<foam::vector<double> >::fixedValueFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to ‚Foam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)‚
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
make: *** [Make/linux64GccDPOpt/ValueExpressionDriver.o] Error 1
bigbox115%

skabilan July 2, 2008 23:28

Hi All, There is another pu
 
Hi All,

There is another puzzle that I cannot solve. The number of faces in my /constant/polymesh/faces file says 6145432 but the file generated by Co utility has only 5760271 entries. Even the phi file has 5760271 entries in it. Any help?

Thanks in advance
Senthil

gschaider July 3, 2008 04:27

If you have a look at the poly
 
If you have a look at the polyMesh/boundary-file you will notice, that the first boundary patch starts at 5760271 (give or take 1 ;) ). Now look for the boundaryField at the end of the Co-file. You will find the missing face-values there.

Bernhard

grtabor July 3, 2008 05:57

It might be easier just to wri
 
It might be easier just to write your own utility to do this. All you would need is the velocity field (start from magU.C) and the cell dimension (get the cell volume from fvMesh and take the cube root?) and output a volScalarField of the Courant number direct for postprocessing with paraFoam.

Gavin

hjasak July 3, 2008 08:05

Hi Senthil, Yes, you get to
 
Hi Senthil,

Yes, you get to Co number only for internal faces. No such thing on the boundary...

Hrv

skabilan July 3, 2008 12:07

Thanks guys! Things are crysta
 
Thanks guys! Things are crystal clear now!

Senthil


All times are GMT -4. The time now is 00:27.