CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   TurbDyMFoam Unknown dynamicFvMesh type mixerFvMesh (https://www.cfd-online.com/Forums/openfoam-solving/57948-turbdymfoam-unknown-dynamicfvmesh-type-mixerfvmesh.html)

david June 26, 2008 09:41

Hi I tried to simulate a tu
 
Hi

I tried to simulate a turbulent mixer2D (icoDyMFoam tutorial case) and got the following error:

--> FOAM FATAL ERROR : Unknown dynamicFvMesh type mixerFvMesh

Valid dynamicFvMesh types are :

7
(
dynamicBodyFvMesh
staticFvMesh
dynamicBoxFvMesh
subsetMotionSolverFvMesh
dynamicMotionSolverFvMesh
dynamicInkJetFvMesh
mixerGgiFvMesh
)

I'm using the dev version (14.5.08) from the powerlab webpage and had no problems with icoDyMFoam. Does anybody know why it doesn't work with turbDyMFoam?

Regards
david

david June 27, 2008 04:13

Once again, the solution is si
 
Once again, the solution is simple. It's necessary to add the entry for the lengine lib in Make/options and to recompile turbDyMFoam.

I have another question concerning the boundary conditions. The tutorial case uses zeroGradient for pressure and movingWallVelocity for U, which means that the flux across the patch is zero. Isn't that completely wrong? I tried to use the type "calculated" but got the following error message:

--> FOAM FATAL ERROR :
gradientInternalCoeffs cannot be called for a calculatedFvPatchField on patch insideSlider of field U in file ....
You are probably trying to solve for a field with a default boundary condition.

From function calculatedFvPatchField<type>::gradientInternalCoef fs() const in file /home/hjasak/OpenFOAM/OpenFOAM-1.4.1-dev/src/finiteVolume/lnInclude/calculatedFv PatchField.C at line 187.

Is there a better solution?

Regards
david

antonio_ing February 14, 2009 09:19

hi guys i have installed o
 
hi guys

i have installed openFoam-1.5-dev version 02/02/09. and i have tried to recompile turbDyMFoam with the lengine but i always got this error:

SOURCE=turbDyMFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicFvMesh/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicMesh/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/meshTools/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/turbulenceModels/RAS -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/transportModels -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/turbDyMFoam.o
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:47,
from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from turbDyMFoam.C:34:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/cpuTime.H:4:3 3: error: asm-generic/cputime.h: No such file or directory
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from turbDyMFoam.C:34:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:68: error: expected class-name before ',' token
turbDyMFoam.C: In function 'int main(int, char**)':
turbDyMFoam.C:153: error: 'class Foam::Time' has no member named 'elapsedCpuTime'
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/readPISOC ontrols.H:3: warning: unused variable 'nCorr'
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/readTimeC ontrols.H:40: warning: unused variable 'maxCo'
make: *** [Make/linuxGccDPOpt/turbDyMFoam.o] Error 1


any suggestion?

mbeaudoin February 14, 2009 14:34

This specific line does not ma
 
This specific line does not make any sense:

>> /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/cpuTime.H:4:3 3: error: asm-generic/cputime.h: No such file or directory <<

Under OpenFOAM-1.5-dev, cpuTime.H is no longer part of the library OpenFOAM, but is now located under the library OSspecific...

Did you, by any chance, extracted your 1.5-dev archive over an already existing 1.4.1-dev local copy?

You are also playing with a slightly outdated version of OF-1.5-dev.

If you plan to use openFoam-1.5-dev, I would strongly recommend that you restart from scratch by downloading and keeping in sync with the 1.5-dev version available from the Subversion repository on openfoam-extend.

You might also want to double check your compiler version...

Best of luck.

Martin

antonio_ing February 14, 2009 17:07

actually it is an installation
 
actually it is an installation from scratch. i have downloaded the packages from the powerlab server in croatia. i have been able to solve some cases (with solvers icoFoam and simpleFoam) but not compile. How can i check the compiler?

hjasak February 15, 2009 03:52

It may be your dependencies ar
 
It may be your dependencies are out of date. Try

wclean

wmake

one more time.

Hrv

antonio_ing February 15, 2009 04:37

still i got the same error
 
still i got the same error

Making dependency list for source file turbDyMFoam.C
SOURCE=turbDyMFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicFvMesh/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicMesh/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/meshTools/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/turbulenceModels/RAS -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/transportModels -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/turbDyMFoam.o
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:47,
from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from turbDyMFoam.C:34:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/cpuTime.H:4:3 3: error: asm-generic/cputime.h: No such file or directory
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from turbDyMFoam.C:34:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:68: error: expected class-name before ',' token
turbDyMFoam.C: In function 'int main(int, char**)':
turbDyMFoam.C:153: error: 'class Foam::Time' has no member named 'elapsedCpuTime'
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/readPISOC ontrols.H:3: warning: unused variable 'nCorr'
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/readTimeC ontrols.H:40: warning: unused variable 'maxCo'
make: *** [Make/linuxGccDPOpt/turbDyMFoam.o] Error 1

antonio_ing February 15, 2009 06:44

even if i do wclean and wmake
 
even if i do wclean and wmake in icoFoam i got the same error so i'm not able to recompile the solvers.

hjasak February 15, 2009 13:31

You are missing a header cputi
 
You are missing a header cputime.h that should come with the compiler:
- are you using the system compiler or the one from ThirdParty.
- is the compiler properly installed, eg. can you compile and run HelloWorld.cpp
- can you use the find or locate command to look for the missing header?

Hrv

mbeaudoin February 15, 2009 21:31

The problem is not with turbDy
 
The problem is not with turbDyMFoam, but with the library OpenFOAM.

Again, looking for cpuTime.H under /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM is a sign that your initial setup is not right.

What happen if you do "wclean; wmake libso" under the directory /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM before trying to compile turbDyMFoam?

Martin

antonio_ing February 16, 2009 00:36

with the wmake libso i got thi
 
with the wmake libso i got this error at the end of the compiltaion (previously everything was right):

Making dependency list for source file graph/writers/jplotGraph/jplotGraph.C
SOURCE=global/global.Cver ; sed s/WM_PROJECT_VERSION/\"1.5-dev\"/ $SOURCE > Make/linuxGccDPOpt/global.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/cfduser-dev/OpenFOAM/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/global.C -o Make/linuxGccDPOpt/global.o
SOURCE=global/dimensionedConstants/dimensionedConstants.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/cfduser-dev/OpenFOAM/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/dimensionedConstants.o
In file included from lnInclude/JobInfo.H:45,
from Make/linuxGccDPOpt/global.C:58:
lnInclude/cpuTime.H:4:33: error: asm-generic/cputime.h: No such file or directory
In file included from Make/linuxGccDPOpt/global.C:58:
lnInclude/JobInfo.H:68: error: 'cpuTime' does not name a type
In file included from Make/linuxGccDPOpt/global.C:82:
lnInclude/JobInfo.C: In member function 'void Foam::JobInfo::end(const Foam::word&)':
lnInclude/JobInfo.C:133: error: 'cpuTime_' was not declared in this scope
SOURCE=global/argList/argList.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/cfduser-dev/OpenFOAM/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/argList.o
make: *** [Make/linuxGccDPOpt/global.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from lnInclude/JobInfo.H:45,
from global/argList/argList.C:34:
lnInclude/cpuTime.H:4:33: error: asm-generic/cputime.h: No such file or directory
In file included from global/argList/argList.C:34:
lnInclude/JobInfo.H:68: error: 'cpuTime' does not name a type
make: *** [Make/linuxGccDPOpt/argList.o] Error 1
cfduser-dev@antonio-laptop:~/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM$

antonio_ing February 16, 2009 16:30

i finally managed to solve the
 
i finally managed to solve the problem compiling again openfoam-dev from scratch. In the installation section there is my post about the openfoam-1.5-dev installation to everybody. Thanks for all the help guys


All times are GMT -4. The time now is 10:15.