|
[Sponsors] |
April 18, 2016, 19:00 |
Formulas in variable expansion
|
#1 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
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) |
|
|
|
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 |