|
[Sponsors] |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 15, 2015, 05:23 |
Adding solvers from DensityBasedTurbo to foam-extend 3.0
|
#1 | ||
Member
Seroga
Join Date: Dec 2011
Posts: 41
Rep Power: 14 |
Hi, everyone!
I have a problem. I have a OpenFOAM-ext-3.0 installed. And I want to add solvers from http://sourceforge.net/p/openfoam-ex...nicMRFDyMFoam/ What is the way I must do that? I tried to do it like this: Quote:
Quote:
|
|||
April 19, 2015, 14:19 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Quick answer: Installation instructions are provided here: http://openfoamwiki.net/index.php/Ex...sityBasedTurbo
|
|
May 24, 2015, 06:33 |
|
#3 | |
Member
Seroga
Join Date: Dec 2011
Posts: 41
Rep Power: 14 |
Thanks a lot, but that didn't work...
I got a lot of errors like could not open file after Quote:
|
||
May 24, 2015, 09:34 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Greetings Seroga,
OK, the problem is that your foam-extend 3.0 is installed as root. As long as the source code for DensityBasedTurbo is located in your normal user account, you only need to do the following two steps as root: Code:
cp -r timeStepping/MRF/* $FOAM_SRC/finiteVolume/cfdTools/general/MRF/ wmake libso $FOAM_SRC/finiteVolume In other words: Code:
mkdir -p $FOAM_RUN cd $FOAM_RUN/.. git clone git://git.code.sf.net/p/openfoam-extend/DensityBasedTurbo DensityBasedTurbo cd DensityBasedTurbo/src su source /opt/foam/foam-extend-3.0/etc/bashrc cp -r timeStepping/MRF/* $FOAM_SRC/finiteVolume/cfdTools/general/MRF/ wmake libso $FOAM_SRC/finiteVolume exit ./Allwmake Bruno
__________________
|
|
May 24, 2015, 09:43 |
|
#5 |
Member
Seroga
Join Date: Dec 2011
Posts: 41
Rep Power: 14 |
I've already tried that. But no result...
Here is the log: Code:
root@user-System-Product-Name:/home/user/foam/user-3.0/DensityBasedTurbo/src# wmake libso $FOAM_SRC/finiteVolume Making dependency list for source file cfdTools/general/MRF/MRFZone.C could not open file dictionary.H for source file cfdTools/general/MRF/MRFZone.C could not open file wordList.H for source file cfdTools/general/MRF/MRFZone.C could not open file labelList.H for source file cfdTools/general/MRF/MRFZone.C could not open file dimensionedScalar.H for source file cfdTools/general/MRF/MRFZone.C could not open file dimensionedVector.H for source file cfdTools/general/MRF/MRFZone.C could not open file fieldTypes.H for source file cfdTools/general/MRF/MRFZone.C Making dependency list for source file cfdTools/general/MRF/MRFZones.C could not open file objectRegistry.H for source file cfdTools/general/MRF/MRFZone.C could not open file GeometricFields.H for source file cfdTools/general/MRF/MRFZone.C could not open file GeoMesh.H for source file cfdTools/general/MRF/MRFZone.C could not open file polyMesh.H for source file cfdTools/general/MRF/MRFZone.C could not open file lduMesh.H for source file cfdTools/general/MRF/MRFZone.C could not open file primitiveMesh.H for source file cfdTools/general/MRF/MRFZone.C could not open file polyPatch.H for source file cfdTools/general/MRF/MRFZone.C could not open file SubList.H for source file cfdTools/general/MRF/MRFZone.C could not open file typeInfo.H for source file cfdTools/general/MRF/MRFZone.C could not open file tmp.H for source file cfdTools/general/MRF/MRFZone.C could not open file primitiveFields.H for source file cfdTools/general/MRF/MRFZone.C could not open file SubField.H for source file cfdTools/general/MRF/MRFZone.C could not open file autoPtr.H for source file cfdTools/general/MRF/MRFZone.C could not open file runTimeSelectionTables.H for source file cfdTools/general/MRF/MRFZone.C could not open file PtrList.H for source file cfdTools/general/MRF/MRFZone.C could not open file dictionary.H for source file cfdTools/general/MRF/MRFZones.C could not open file wordList.H for source file cfdTools/general/MRF/MRFZones.C could not open file labelList.H for source file cfdTools/general/MRF/MRFZones.C could not open file dimensionedScalar.H for source file cfdTools/general/MRF/MRFZones.C could not open file dimensionedVector.H for source file cfdTools/general/MRF/MRFZones.C could not open file fieldTypes.H for source file cfdTools/general/MRF/MRFZones.C could not open file lduInterfacePtrsList.H for source file cfdTools/general/MRF/MRFZone.C could not open file scalar.H for source file cfdTools/general/MRF/MRFZone.C could not open file objectRegistry.H for source file cfdTools/general/MRF/MRFZones.C could not open file GeometricFields.H for source file cfdTools/general/MRF/MRFZones.C could not open file IOdictionary.H for source file cfdTools/general/MRF/MRFZone.C could not open file GeoMesh.H for source file cfdTools/general/MRF/MRFZones.C could not open file polyMesh.H for source file cfdTools/general/MRF/MRFZones.C could not open file solution.H for source file cfdTools/general/MRF/MRFZone.C could not open file lduMesh.H for source file cfdTools/general/MRF/MRFZones.C could not open file primitiveMesh.H for source file cfdTools/general/MRF/MRFZones.C could not open file className.H for source file cfdTools/general/MRF/MRFZone.C could not open file DimensionedField.H for source file cfdTools/general/MRF/MRFZone.C could not open file pointFieldsFwd.H for source file cfdTools/general/MRF/MRFZone.C could not open file polyPatch.H for source file cfdTools/general/MRF/MRFZones.C could not open file SubList.H for source file cfdTools/general/MRF/MRFZones.C could not open file typeInfo.H for source file cfdTools/general/MRF/MRFZones.C could not open file tmp.H for source file cfdTools/general/MRF/MRFZones.C could not open file primitiveFields.H for source file cfdTools/general/MRF/MRFZones.C could not open file SubField.H for source file cfdTools/general/MRF/MRFZones.C could not open file autoPtr.H for source file cfdTools/general/MRF/MRFZones.C could not open file runTimeSelectionTables.H for source file cfdTools/general/MRF/MRFZones.C could not open file IOobject.H for source file cfdTools/general/MRF/MRFZone.C could not open file GeometricField.H for source file cfdTools/general/MRF/MRFZone.C could not open file PtrList.H for source file cfdTools/general/MRF/MRFZones.C could not open file lduInterfacePtrsList.H for source file cfdTools/general/MRF/MRFZones.C could not open file scalar.H for source file cfdTools/general/MRF/MRFZones.C could not open file IOdictionary.H for source file cfdTools/general/MRF/MRFZones.C could not open file solution.H for source file cfdTools/general/MRF/MRFZones.C could not open file className.H for source file cfdTools/general/MRF/MRFZones.C could not open file DimensionedField.H for source file cfdTools/general/MRF/MRFZones.C could not open file pointFieldsFwd.H for source file cfdTools/general/MRF/MRFZones.C could not open file IOobject.H for source file cfdTools/general/MRF/MRFZones.C could not open file GeometricField.H for source file cfdTools/general/MRF/MRFZones.C could not open file lduMatrix.H for source file cfdTools/general/MRF/MRFZone.C could not open file dimensionedTypes.H for source file cfdTools/general/MRF/MRFZone.C could not open file zeroField.H for source file cfdTools/general/MRF/MRFZone.C could not open file BlockLduInterfaceField.H for source file cfdTools/general/MRF/MRFZone.C could not open file CoeffField.H for source file cfdTools/general/MRF/MRFZone.C could not open file lduInterfaceField.H for source file cfdTools/general/MRF/MRFZone.C could not open file lduInterface.H for source file cfdTools/general/MRF/MRFZone.C could not open file coupledPolyPatch.H for source file cfdTools/general/MRF/MRFZone.C could not open file lduMatrix.H for source file cfdTools/general/MRF/MRFZones.C could not open file dimensionedTypes.H for source file cfdTools/general/MRF/MRFZones.C could not open file zeroField.H for source file cfdTools/general/MRF/MRFZones.C could not open file BlockLduInterfaceField.H for source file cfdTools/general/MRF/MRFZones.C could not open file CoeffField.H for source file cfdTools/general/MRF/MRFZones.C could not open file lduInterfaceField.H for source file cfdTools/general/MRF/MRFZones.C could not open file lduInterface.H for source file cfdTools/general/MRF/MRFZones.C could not open file coupledPolyPatch.H for source file cfdTools/general/MRF/MRFZones.C could not open file profiling.H for source file cfdTools/general/MRF/MRFZone.C could not open file syncTools.H for source file cfdTools/general/MRF/MRFZone.C could not open file faceSet.H for source file cfdTools/general/MRF/MRFZone.C could not open file geometricOneField.H for source file cfdTools/general/MRF/MRFZone.C could not open file profiling.H for source file cfdTools/general/MRF/MRFZones.C could not open file IOPtrList.H for source file cfdTools/general/MRF/MRFZones.C could not open file Time.H for source file cfdTools/general/MRF/MRFZones.C could not open file parRun.H for source file cfdTools/general/MRF/MRFZones.C could not open file primitiveFieldsFwd.H for source file cfdTools/general/MRF/MRFZones.C could not open file Field.H for source file cfdTools/general/MRF/MRFZones.C could not open file dimensionedType.H for source file cfdTools/general/MRF/MRFZones.C could not open file HashTable.H for source file cfdTools/general/MRF/MRFZones.C could not open file geometricOneField.H for source file cfdTools/general/MRF/MRFZones.C could not open file uniformDimensionedFields.H for source file cfdTools/general/MRF/MRFZones.C could not open file label.H for source file cfdTools/general/MRF/MRFZones.C could not open file mathematicalConstants.H for source file cfdTools/general/MRF/MRFZones.C could not open file OSspecific.H for source file cfdTools/general/MRF/MRFZones.C could not open file argList.H for source file cfdTools/general/MRF/MRFZones.C could not open file timeSelector.H for source file cfdTools/general/MRF/MRFZones.C SOURCE=fvMesh/fvMeshGeometry.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/opt/foam/foam-extend-3.0/src/triSurface/lnInclude -I/opt/foam/foam-extend-3.0/src/meshTools/lnInclude -IlnInclude -I. -I/opt/foam/foam-extend-3.0/src/foam/lnInclude -I/opt/foam/foam-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fvMeshGeometry.o SOURCE=fvMesh/singleCellFvMesh/singleCellFvMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/opt/foam/foam-extend-3.0/src/triSurface/lnInclude -I/opt/foam/foam-extend-3.0/src/meshTools/lnInclude -IlnInclude -I. -I/opt/foam/foam-extend-3.0/src/foam/lnInclude -I/opt/foam/foam-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/singleCellFvMesh.o SOURCE=fvMesh/fvMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/opt/foam/foam-extend-3.0/src/triSurface/lnInclude -I/opt/foam/foam-extend-3.0/src/meshTools/lnInclude -IlnInclude -I. -I/opt/foam/foam-extend-3.0/src/foam/lnInclude -I/opt/foam/foam-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fvMesh.o SOURCE=fvMesh/fvMeshSubset/fvMeshSubset.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/opt/foam/foam-extend-3.0/src/triSurface/lnInclude -I/opt/foam/foam-extend-3.0/src/meshTools/lnInclude -IlnInclude -I. -I/opt/foam/foam-extend-3.0/src/foam/lnInclude -I/opt/foam/foam-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fvMeshSubset.o In file included from fvMesh/singleCellFvMesh/singleCellFvMesh.H:41:0, from fvMesh/singleCellFvMesh/singleCellFvMesh.C:26: lnInclude/fvPatchFieldMapper.H:35:29: fatal error: primitiveFields.H: No such file or directory compilation terminated. In file included from fvMesh/fvMeshSubset/fvMeshSubset.H:57:0, from fvMesh/fvMeshSubset/fvMeshSubset.C:34: lnInclude/fvMesh.H:50:22: fatal error: polyMesh.H: No such file or directory compilation terminated. In file included from fvMesh/fvMesh.C:26:0: fvMesh/fvMesh.H:50:22: fatal error: polyMesh.H: No such file or directory compilation terminated. In file included from fvMesh/fvMeshGeometry.C:26:0: fvMesh/fvMesh.H:50:22: fatal error: polyMesh.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/singleCellFvMesh.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Make/linux64GccDPOpt/fvMesh.o] Error 1 make: *** [Make/linux64GccDPOpt/fvMeshGeometry.o] Error 1 make: *** [Make/linux64GccDPOpt/fvMeshSubset.o] Error 1 Last edited by wyldckat; May 24, 2015 at 16:18. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE] |
|
May 24, 2015, 10:33 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Quick answer: If you installed foam-extend 3.0 from a Deb package, then try this:
Code:
su - source /opt/foam/foam-extend-3.0/etc/bashrc cd $FOAM_SRC wmakeLnIncludeAll wmake libso finiteVolume |
|
May 24, 2015, 11:39 |
|
#7 |
Member
Seroga
Join Date: Dec 2011
Posts: 41
Rep Power: 14 |
Thanks a lot!!! That helped.
Could you please tell one more thing? Now, than I try to run transonicMRFDyMFoam it shows an error: Unknown function type patchMassFlow. That's because this function is used in controlDict added function. What's the way to handle this error? Moreover, than I try to calculate Mach number for calculated case I get Code:
--> FOAM FATAL ERROR: Not Implemented Trying to construct an genericFvPatchField on patch inlet_0 of field h From function genericFvPatchField<Type>::genericFvPatchField(const fvPatch& p, const DimensionedField<Type, volMesh>& iF) in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 44. FOAM aborting Last edited by wyldckat; May 24, 2015 at 16:20. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE] |
|
May 24, 2015, 16:23 |
|
#8 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Seroga,
Quote:
Quote:
My guess is that something went wrong during the other steps in Allrun, because swak4Foam isn't installed. Best regards, Bruno
__________________
|
|||
June 10, 2015, 17:02 |
|
#9 | ||
Member
Seroga
Join Date: Dec 2011
Posts: 41
Rep Power: 14 |
I've installed swak4Foam and everything went OK. Thanks for your help!
However, I've tried to use some other solvers from that scope like transonicMRFFSIDyMFoam and faced other problems... The main error looks like Quote:
Quote:
Could you, please, help me with this problem? |
|||
June 12, 2015, 17:18 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Seroga,
I've got good news and bad news:
Best regards, Bruno
__________________
|
|
Tags |
openfoam 3.0 ext, solver compilation error |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 04:20 |
[blockMesh] Errors during blockMesh meshing | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 51 | May 30, 2016 10:51 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
gmsh2ToFoam | sarajags_89 | OpenFOAM | 0 | November 24, 2009 22:50 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 08:19 |