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

Formulas in variable expansion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2016, 19:00
Default Formulas in variable expansion
  #1
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Hi,

Is there anyway to use a formula along with variable expansions?
This makes life much easier as I can set up a single setup file in the root and change it for different runs rather than changing similar parameters in multiple files.

For example assume I want to sample multiple points as fractions of a channel length, now changing the channel length makes me update all the points, while if I had the luxury of formulas in variable expansion I could have simply had the points dictionary as:

Code:
(1*$xm/10 0 0)
(3*$xm/10 0 0)
(5*$xm/10 0 0)
(7*$xm/10 0 0)
(9*$xm/10 0 0)
anishtain4 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
equationReader in combination with variable expansion philippose OpenFOAM Bugs 5 January 23, 2012 13:58
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 04:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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