run openfoam with bash script
hi everybody,
i wrote a short Fluent3DMeshtoFoam bash script. #!/bin/sh /sw/ansys/ansys12.1/v121/fluent/bin/fluent 3ddp -g < fluent_ascii fluent3DMeshToFoam recalculation_re=200k_done_ascii.cas createPatch rm -r /home/stswi1/HiWi/OpenFOAM/8k5/constant/polyMesh cp -a /home/stswi1/HiWi/OpenFOAM/8k5/70.02/polyMesh* /home/stswi1/HiWi/OpenFOAM/8k5/constant/ rm -r /home/stswi1/HiWi/OpenFOAM/8k5/70.02 /sw/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/rhoSimpleFoam wallGradT it works when i run openfoam (option openfoam-17.x) and then run the bash script. without running openfoam at first the following fault appears. /sw/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/rhoSimpleFoam: symbol lookup error: /sw/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/rhoSimpleFoam: undefined symbol: _ZN4Foam13fvsPatchFieldINS_6VectorIdEEE28disallowD efaultFvsPatchFieldE is it something with the environment variables? could anybody help me? thanks in advance. Simon |
Greetings Simon and welcome to the forum!
I'll have to be quick to answer:
Bruno |
hi bruno,
thanks for your quick response. yes the "openfoam" command i am talking about is a command for loading OpenFOAM's shell variables. i will take a look at your link. simon |
All times are GMT -4. The time now is 10:30. |