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

setSet in bash-script (Allrun-file)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2014, 12:21
Default setSet in bash-script (Allrun-file)
  #1
New Member
 
Björn N.
Join Date: Jun 2013
Posts: 11
Rep Power: 13
bjoern1 is on a distinguished road
Hello Foamers!

I try to set up a bash script for my case that automatically sets up the geometrical parameters. The problem is, that I want to use setSet which opens a subroutine.
Can someone tell me how I can write in this subroutine from my bashscript?
It looks like this at the moment. ($parameter1 is a value from geometrieparameter.sh)

Code:
#!/bin/sh

#geometrical parameters
. ./constant/parameter/geometrieparameter.sh

cd constant/polyMesh

perl -w blockMeshDict.pl

cd ../..

blockMesh

topoSet

setSet
cellSet c0 new cylinderToCell (0 0 0) (0 0 0.01) $parameter1
cellZoneSet c0Zone new setToCellZone c0


checkMesh -allGeometry -allTopology
Thanks a lot in advance!


Björn
bjoern1 is offline   Reply With Quote

Old   December 12, 2014, 12:25
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

There's -batch command line key:

Code:
Usage: setSet [OPTIONS]
options:
  -batch <file>     process in batch mode, using input from specified file
...
alexeym is offline   Reply With Quote

Old   December 12, 2014, 13:56
Default
  #3
New Member
 
Björn N.
Join Date: Jun 2013
Posts: 11
Rep Power: 13
bjoern1 is on a distinguished road
Thank you alexeym!
bjoern1 is offline   Reply With Quote

Reply

Tags
bash setset


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 17:46
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 16:04.