CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

icoFoam with multiRegion and passive scalar transport

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 20, 2012, 11:44
Default icoFoam with multiRegion and passive scalar transport
  #1
Member
 
Martin
Join Date: Aug 2010
Location: Germany
Posts: 55
Rep Power: 6
RugbyGandalf is on a distinguished road
Dear FoamCommunity,

i try to build a solver, which allows me to simulate multiRegions with passive scalartransport from fluid to solid and back, for a nonNewtonian fluid.

I took pieces from chtMultiRegionFoam.C and nonNewtonianIcoFoam.C as well as some from scalarTransportFoam.
At the moment i am facing several problems. The actual one: i cannot compile the solver without any warnings/errors.
For instance: i can't figure out, why "fluid" is not defined, respectively where to define it.

I will upload the code of the .C file and the error-message from terminal as well.
Hopefully someone can help me.

Regards,

Martin

Code:
SOURCE=CDTnonNewtonianIcoFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -Ifluid -Isolid -Iinclude -I/opt/openfoam211/src/meshTools/lnInclude -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam211/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam211/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam211/src/thermophysicalModels/basicSolidThermo/lnInclude -I/opt/openfoam211/src/turbulenceModels/compressible/turbulenceModel/lnInclude  -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/CDTnonNewtonianIcoFoam.o
CDTnonNewtonianIcoFoam.C: In function ‘int main(int, char**)’:
CDTnonNewtonianIcoFoam.C:93: error: ‘fluid’ was not declared in this scope
CDTnonNewtonianIcoFoam.C:118: error: ‘pRefCell’ was not declared in this scope
CDTnonNewtonianIcoFoam.C:118: error: ‘pRefValue’ was not declared in this scope
In file included from CDTnonNewtonianIcoFoam.C:127:
/opt/openfoam211/src/finiteVolume/lnInclude/continuityErrs.H:40: error: no match for ‘operator+=’ in ‘cumulativeContErr += globalContErr’
CDTnonNewtonianIcoFoam.C:136: error: no matching function for call to ‘laplacian(const int&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&)’
In file included from CDTnonNewtonianIcoFoam.C:149:
solid/lookupSolidDiffCoeff.H:2: error: ‘diffCoeffSolid’ was not declared in this scope
solid/lookupSolidDiffCoeff.H:11: error: ‘subDict’ was not declared in this scope
CDTnonNewtonianIcoFoam.C:154: error: ‘diffCoeff’ was not declared in this scope
solid/readSolidMultiRegionPIMPLEControls.H:3: warning: unused variable ‘nNonOrthCorr’
CDTnonNewtonianIcoFoam.C:76: warning: unused variable ‘finalIter’
/opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32: warning: unused variable ‘adjustTimeStep’
/opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:35: warning: unused variable ‘maxCo’
/opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’
solid/readSolidTimeControls.H:32: warning: unused variable ‘maxDi’
/opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32: warning: unused variable ‘adjustTimeStep’
/opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:35: warning: unused variable ‘maxCo’
/opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’
solid/readSolidTimeControls.H:32: warning: unused variable ‘maxDi’
make: *** [Make/linux64GccDPOpt/CDTnonNewtonianIcoFoam.o] Fehler 1
Attached Files
File Type: c CDTnonNewtonianIcoFoam.C (5.0 KB, 4 views)
RugbyGandalf is offline   Reply With Quote

Old   January 2, 2013, 03:41
Default
  #2
New Member
 
Ivo
Join Date: Feb 2012
Posts: 22
Rep Power: 5
Ivooo is on a distinguished road
Hi,

Did you check the topic about chtIcoMultiRegionFoam? It can be found here [1], you might need to adjust it somewhat to fit your needs, but the basic framework is already there, it seems.

[1] chtIcoMultiRegionFoam - Incompressible version of chtMultiRegionFoam.
Ivooo 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



All times are GMT -4. The time now is 02:26.