|
[Sponsors] |
icoFoam with multiRegion and passive scalar transport |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 20, 2012, 11:44 |
icoFoam with multiRegion and passive scalar transport
|
#1 |
Member
Martin
Join Date: Aug 2010
Location: Germany
Posts: 55
Rep Power: 16 |
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 |
|
January 2, 2013, 03:41 |
|
#2 |
New Member
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14 |
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] http://www.cfd-online.com/Forums/ope...egionfoam.html |
|
|
|