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

Elements that limit the Courant number

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 1, 2008, 21:37
Default Hi All, Is there a way to k
  #1
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 8
skabilan is on a distinguished road
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
skabilan is offline   Reply With Quote

Old   July 2, 2008, 03:58
Default Have a look at the Co-utility.
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
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
gschaider is offline   Reply With Quote

Old   July 2, 2008, 17:45
Default Hi Bernhard, Thanks for the
  #3
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 8
skabilan is on a distinguished road
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
skabilan is offline   Reply With Quote

Old   July 2, 2008, 18:06
Default ValueExpressionDriver.C:9:32:
  #4
ash
New Member
 
Arun Shourie
Join Date: Mar 2009
Location: Singapore
Posts: 12
Rep Power: 8
ash is on a distinguished road
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.
ash is offline   Reply With Quote

Old   July 2, 2008, 18:27
Default Hi Arun, Thanks for the hel
  #5
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 8
skabilan is on a distinguished road
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 is offline   Reply With Quote

Old   July 2, 2008, 23:28
Default Hi All, There is another pu
  #6
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 8
skabilan is on a distinguished road
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
skabilan is offline   Reply With Quote

Old   July 3, 2008, 04:27
Default If you have a look at the poly
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
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
gschaider is offline   Reply With Quote

Old   July 3, 2008, 05:57
Default It might be easier just to wri
  #8
Senior Member
 
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 8
grtabor is on a distinguished road
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
grtabor is offline   Reply With Quote

Old   July 3, 2008, 08:05
Default Hi Senthil, Yes, you get to
  #9
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   July 3, 2008, 12:07
Default Thanks guys! Things are crysta
  #10
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 8
skabilan is on a distinguished road
Thanks guys! Things are crystal clear now!

Senthil
skabilan is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 13, 2005 23:12
About Courant (CFL) number Jason Main CFD Forum 2 March 17, 2003 12:11


All times are GMT -4. The time now is 06:25.