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, 11:47
Default run openfoam with bash script
  #1
New Member
 
Simon Emhardt
Join Date: Feb 2013
Posts: 9
Rep Power: 13
Gosi is on a distinguished road
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
Gosi is offline   Reply With Quote

Old   March 25, 2013, 16:23
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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, 09:10
Default
  #3
New Member
 
Simon Emhardt
Join Date: Feb 2013
Posts: 9
Rep Power: 13
Gosi is on a distinguished road
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
Gosi is offline   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 13:00
Can't run paraFoam with OpenFOAM 1.6 Fed11 OpenFOAM Installation 1 October 30, 2009 19:54
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50
How to run the graphic interface of openfoam liugx212 OpenFOAM Running, Solving & CFD 3 November 12, 2005 15:06


All times are GMT -4. The time now is 18:57.