CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Scheme programing, variable definition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 29, 2012, 08:47
Default Scheme programing, variable definition
  #1
New Member
 
Join Date: Feb 2012
Posts: 1
Rep Power: 0
Leonlow is on a distinguished road
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
Leonlow is offline   Reply With Quote

Old   September 3, 2014, 19:21
Default
  #2
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 297
Rep Power: 9
syavash is on a distinguished road
Quote:
Originally Posted by Leonlow View Post
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
Hi,

Could you solve this problem??! I have the very similar problem and hope you would help me.

Thanks
syavash is offline   Reply With Quote

Reply

Tags
fluent scheme variable

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 10:14
Definition of limiter function for central dirrerencing scheme sebastian_vogl OpenFOAM Running, Solving & CFD 0 January 5, 2009 12:08
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 01:27.