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

run openfoam with bash script

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 25, 2013, 12:47
Default run openfoam with bash script
  #1
New Member
 
Simon Emhardt
Join Date: Feb 2013
Posts: 9
Rep Power: 4
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, 17:23
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 online now   Reply With Quote

Old   April 11, 2013, 09:10
Default
  #3
New Member
 
Simon Emhardt
Join Date: Feb 2013
Posts: 9
Rep Power: 4
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

Thread Tools
Display Modes

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 On
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 20: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 16:06


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