|
[Sponsors] |
February 29, 2012, 07:47 |
Scheme programing, variable definition
|
#1 |
New Member
Join Date: Feb 2012
Posts: 1
Rep Power: 0 |
Hi, I'm in need of help regarding definition of a variable in a .scm file (scheme)
I have a transient simulation in fluent and want to change a boundary condition from wall to interior when a certain pressure limit in the system is achived. I want to do this with a .scm file. Something like this: (rp-var-define 'press (ti-menu-load-string"/report/surface-integrals/facet-max/ (1) mixture pressure no") 'float #f) (if (> (%rpgetvar 'press) 10000) (ti-menu-load-string "/define/boundary-conditions/zone-type outletfrombox interior")) The problem I'm having is to define the pressure as a variable. To be clear, I have problem asigning the variable press with a number corresponding to my pressure. I have no previous experience in scheem and are gratefull for help=) Best regards |
|
September 3, 2014, 19:21 |
|
#2 | |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Could you solve this problem??! I have the very similar problem and hope you would help me. Thanks |
||
Tags |
fluent scheme variable |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 09:14 |
Definition of limiter function for central dirrerencing scheme | sebastian_vogl | OpenFOAM Running, Solving & CFD | 0 | January 5, 2009 11:08 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 04:35 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |