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

Passing envars to dictionary's

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By floquation

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 31, 2017, 09:32
Default Passing envars to dictionary's
  #1
Member
 
Victor Koppejan
Join Date: May 2015
Posts: 40
Rep Power: 11
vkoppejan is on a distinguished road
Hi everyone,

I was wondering if there's a way to pass environment variables to OpenFOAM discitonaries.

For instance, say I define ndoms = 4 (via export ndoms = 4), could I somehow use $ndoms in the decomposeParDict? I start my runs from slurm so all var's are defined for a single simulation only.

Cheers,

Victor
vkoppejan is offline   Reply With Quote

 


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
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
Retrieve query point coordonate to create a plane passing through this point. potofus EnSight 2 April 6, 2016 07:26
Finding the number of particles passing through a plane in a transient DPM simulation tengteng FLUENT 2 February 10, 2016 02:25
Inlet passing wake sherifkadry OpenFOAM 0 June 26, 2012 20:04
gambit meshing for the flow passing cylinder iilw1314 Main CFD Forum 5 April 11, 2010 19:28


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