|
[Sponsors] |
April 12, 2012, 04:29 |
Embed explicitSetValue in chtMultiRegionFoam
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Dear all,
I am trying to embed the explicitSetValue feature (see here) in the chtMultiRegionFoam solver. I succeded in doing this for the buoyantSimpleFoam solver (attached you can find the file), but I am finding it very difficult to do the same for the unsteady solvers (both buoyantPimpleFoam and chtMultiRegionFoam). Now I am working on the latter (i.e. chtMultiRegionFoam) and I am asking for help. Could anyone give me any hints? Thanks a lot, Samuele PS: when I try to compile my new solver chtMultiRegionFoam_Epta I got this error message: Code:
lab@lab-laptop:~/OpenFOAM/lab-2.1.0/applications/solvers/chtMultiRegionFoam_Epta$ wmake Making dependency list for source file fluid/compressibleCourantNo.C Making dependency list for source file solid/solidRegionDiffNo.C Making dependency list for source file chtMultiRegionFoam_Epta.C SOURCE=fluid/compressibleCourantNo.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/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/turbulenceModels/compressible/RAS/lnInclude -I/opt/openfoam210/src/finiteVolume/cfdTools -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basicSolidThermo/lnInclude -I/opt/openfoam210/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/compressibleCourantNo.o SOURCE=solid/solidRegionDiffNo.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/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/turbulenceModels/compressible/RAS/lnInclude -I/opt/openfoam210/src/finiteVolume/cfdTools -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basicSolidThermo/lnInclude -I/opt/openfoam210/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/solidRegionDiffNo.o SOURCE=chtMultiRegionFoam_Epta.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/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/turbulenceModels/compressible/RAS/lnInclude -I/opt/openfoam210/src/finiteVolume/cfdTools -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basicSolidThermo/lnInclude -I/opt/openfoam210/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/chtMultiRegionFoam_Epta.o In file included from chtMultiRegionFoam_Epta.C:56: fluid/createFluidFields.H: In function ‘int main(int, char**)’: fluid/createFluidFields.H:201: error: no matching function for call to ‘Foam::IObasicSourceList::IObasicSourceList(Foam::PtrList<Foam::fvMesh>&)’ /opt/openfoam210/src/finiteVolume/lnInclude/IObasicSourceList.H:75: note: candidates are: Foam::IObasicSourceList::IObasicSourceList(const Foam::fvMesh&) /opt/openfoam210/src/finiteVolume/lnInclude/IObasicSourceList.H:64: note: Foam::IObasicSourceList::IObasicSourceList(const Foam::IObasicSourceList&) In file included from chtMultiRegionFoam_Epta.C:66: solid/setRegionSolidFields.H:1: warning: unused variable ‘mesh’ solid/setRegionSolidFields.H:15: warning: unused variable ‘T’ In file included from chtMultiRegionFoam_Epta.C:78: solid/setRegionSolidFields.H:1: warning: unused variable ‘mesh’ solid/setRegionSolidFields.H:15: warning: unused variable ‘T’ fluid/setRegionFluidFields.H:1: warning: unused variable ‘mesh’ fluid/setRegionFluidFields.H:5: warning: unused variable ‘kappa’ fluid/setRegionFluidFields.H:6: warning: unused variable ‘U’ fluid/setRegionFluidFields.H:7: warning: unused variable ‘phi’ fluid/setRegionFluidFields.H:9: warning: unused variable ‘turb’ fluid/setRegionFluidFields.H:10: warning: unused variable ‘K’ fluid/setRegionFluidFields.H:11: warning: unused variable ‘dpdt’ fluid/setRegionFluidFields.H:13: warning: unused variable ‘p’ fluid/setRegionFluidFields.H:14: warning: unused variable ‘psi’ fluid/setRegionFluidFields.H:15: warning: unused variable ‘h’ fluid/setRegionFluidFields.H:18: warning: unused variable ‘gh’ fluid/setRegionFluidFields.H:19: warning: unused variable ‘ghf’ fluid/setRegionFluidFields.H:21: warning: unused variable ‘rad’ make: *** [Make/linux64GccDPOpt/chtMultiRegionFoam_Epta.o] Error 1 lab@lab-laptop:~/OpenFOAM/lab-2.1.0/applications/solvers/chtMultiRegionFoam_Epta$ |
|
April 17, 2012, 09:49 |
|
#2 |
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21 |
Not sure how much I can help. Looks to be complaining about the way you have called:
Code:
IObasicSourceList sources(fluidRegions); |
|
April 18, 2012, 05:14 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Dear Kent,
thanks for help. Actually, if I do as you suggested, I get this: Code:
lab@lab-laptop:~/OpenFOAM/lab-2.1.0/applications/solvers/chtMultiRegionFoam_Epta$ wmake Making dependency list for source file fluid/compressibleCourantNo.C Making dependency list for source file solid/solidRegionDiffNo.C Making dependency list for source file chtMultiRegionFoam_Epta.C SOURCE=fluid/compressibleCourantNo.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/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/turbulenceModels/compressible/RAS/lnInclude -I/opt/openfoam210/src/finiteVolume/cfdTools -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basicSolidThermo/lnInclude -I/opt/openfoam210/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/compressibleCourantNo.o SOURCE=solid/solidRegionDiffNo.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/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/turbulenceModels/compressible/RAS/lnInclude -I/opt/openfoam210/src/finiteVolume/cfdTools -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basicSolidThermo/lnInclude -I/opt/openfoam210/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/solidRegionDiffNo.o SOURCE=chtMultiRegionFoam_Epta.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/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/turbulenceModels -I/opt/openfoam210/src/turbulenceModels/compressible/RAS/lnInclude -I/opt/openfoam210/src/finiteVolume/cfdTools -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam210/src/thermophysicalModels/basicSolidThermo/lnInclude -I/opt/openfoam210/src/turbulenceModels/compressible/turbulenceModel/lnInclude -I/opt/openfoam210/src/thermophysicalModels/radiationModels/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/chtMultiRegionFoam_Epta.o In file included from chtMultiRegionFoam_Epta.C:66: solid/setRegionSolidFields.H: In function ‘int main(int, char**)’: solid/setRegionSolidFields.H:1: warning: unused variable ‘mesh’ solid/setRegionSolidFields.H:15: warning: unused variable ‘T’ In file included from chtMultiRegionFoam_Epta.C:78: solid/setRegionSolidFields.H:1: warning: unused variable ‘mesh’ solid/setRegionSolidFields.H:15: warning: unused variable ‘T’ fluid/setRegionFluidFields.H:1: warning: unused variable ‘mesh’ fluid/setRegionFluidFields.H:5: warning: unused variable ‘kappa’ fluid/setRegionFluidFields.H:6: warning: unused variable ‘U’ fluid/setRegionFluidFields.H:7: warning: unused variable ‘phi’ fluid/setRegionFluidFields.H:9: warning: unused variable ‘turb’ fluid/setRegionFluidFields.H:10: warning: unused variable ‘K’ fluid/setRegionFluidFields.H:11: warning: unused variable ‘dpdt’ fluid/setRegionFluidFields.H:13: warning: unused variable ‘p’ fluid/setRegionFluidFields.H:14: warning: unused variable ‘psi’ fluid/setRegionFluidFields.H:15: warning: unused variable ‘h’ fluid/setRegionFluidFields.H:18: warning: unused variable ‘gh’ fluid/setRegionFluidFields.H:19: warning: unused variable ‘ghf’ fluid/setRegionFluidFields.H:21: warning: unused variable ‘rad’ In file included from fluid/solveFluid.H:11, from chtMultiRegionFoam_Epta.C:106: fluid/UEqn.H:8: error: ‘sources’ was not declared in this scope make: *** [Make/linux64GccDPOpt/chtMultiRegionFoam_Epta.o] Error 1 Any other idea? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in chtMultiRegionFoam | kirankarki | OpenFOAM | 6 | August 21, 2018 08:00 |
Using a Different Thermodynamics Package with the chtMultiRegionFoam Solver | m.nichols19 | OpenFOAM | 7 | March 17, 2011 16:26 |
chtmultiregionFoam | alvora | OpenFOAM | 9 | February 23, 2011 03:06 |
chtMultiRegionFoam......Help please.... | devesh.baghel | OpenFOAM | 8 | April 7, 2010 15:17 |
How to add 3rd region to chtMultiRegionFoam | benk | OpenFOAM | 1 | April 3, 2010 17:22 |