CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

run openfoam with bash script

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2013, 12:47
Default run openfoam with bash script
  #1
Gosi
Guest
 
Posts: n/a
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
  Reply With Quote

Old   March 25, 2013, 17:23
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Simon and welcome to the forum!

I'll have to be quick to answer:
  1. I can only assume that the "openfoam" command you're talking about is a command specifically designed for loading OpenFOAM's shell variables.
  2. For more on this topic, read: Advanced tips for working with the OpenFOAM shell environment
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 11, 2013, 10:10
Default
  #3
Gosi
Guest
 
Posts: n/a
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
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Would you pay to run your OpenFoam simulations remotely? danhumphreys OpenFOAM 4 October 27, 2010 14:00
Can't run paraFoam with OpenFOAM 1.6 Fed11 OpenFOAM Installation 1 October 30, 2009 20:54
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50
How to run the graphic interface of openfoam liugx212 OpenFOAM Running, Solving & CFD 3 November 12, 2005 16:06


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