|
[Sponsors] |
July 1, 2008, 22:37 |
Hi All,
Is there a way to k
|
#1 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
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 |
|
July 2, 2008, 04:58 |
Have a look at the Co-utility.
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
July 2, 2008, 18:45 |
Hi Bernhard,
Thanks for the
|
#3 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
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 |
|
July 2, 2008, 19:06 |
ValueExpressionDriver.C:9:32:
|
#4 |
New Member
Arun Shourie
Join Date: Mar 2009
Location: Singapore
Posts: 12
Rep Power: 17 |
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. |
|
July 2, 2008, 19:27 |
Hi Arun,
Thanks for the hel
|
#5 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
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% |
|
July 3, 2008, 00:28 |
Hi All,
There is another pu
|
#6 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
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 |
|
July 3, 2008, 05:27 |
If you have a look at the poly
|
#7 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
July 3, 2008, 06:57 |
It might be easier just to wri
|
#8 |
Senior Member
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17 |
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 |
|
July 3, 2008, 09:05 |
Hi Senthil,
Yes, you get to
|
#9 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Hi Senthil,
Yes, you get to Co number only for internal faces. No such thing on the boundary... Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
July 3, 2008, 13:07 |
Thanks guys! Things are crysta
|
#10 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
Thanks guys! Things are crystal clear now!
Senthil |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Courant number | ivanyao | OpenFOAM Running, Solving & CFD | 5 | January 5, 2009 05:25 |
COURANT NUMBER | Ferreira | Main CFD Forum | 23 | February 26, 2006 19:10 |
Courant number 999.999 | PetrK | CFX | 3 | December 15, 2005 12:07 |
Limit on Number of monitors? | noName | FLUENT | 1 | April 14, 2005 00:12 |
About Courant (CFL) number | Jason | Main CFD Forum | 2 | March 17, 2003 12:11 |