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

Scheme Problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2012, 10:27
Default Scheme Problem
  #1
New Member
 
Join Date: Jun 2012
Posts: 1
Rep Power: 0
ottandr is on a distinguished road
Hello!

I have i little problem which should probably easy to solve but i cant find a solution for it.

What the scheme programm should do is the following:
if the scheme variable "udf/marker_geschlossen" is equal to 0 the case and data should be saved in under the specified name.

here is my code that doesnt work:
(if (= (Rpgetvar 'udf/marker_geschlossen) 0)
(file write-case-data "init_trans_test_anfw_4.cas.gz"))

it gives me the following error:
ERROR: eval: unbound variable
ERROR Object: file

if i let the () away in the second line i get the error that i have to many input arguments.

i hope somebody can help me out here as i guess it's a really simply problem that can be solved for sure. Thx in advance!

Yours,
Andi
ottandr is offline   Reply With Quote

Old   October 22, 2012, 06:24
Default need to define variable
  #2
Member
 
karthickeyan
Join Date: Feb 2010
Location: coimbatore
Posts: 36
Rep Power: 16
karthickeyan is on a distinguished road
Send a message via Skype™ to karthickeyan
before using your own variable in scheme function u need to define it in fluent

Quote:
Originally Posted by ottandr View Post
Hello!

I have i little problem which should probably easy to solve but i cant find a solution for it.

What the scheme programm should do is the following:
if the scheme variable "udf/marker_geschlossen" is equal to 0 the case and data should be saved in under the specified name.

here is my code that doesnt work:
(if (= (Rpgetvar 'udf/marker_geschlossen) 0)
(file write-case-data "init_trans_test_anfw_4.cas.gz"))

it gives me the following error:
ERROR: eval: unbound variable
ERROR Object: file

if i let the () away in the second line i get the error that i have to many input arguments.

i hope somebody can help me out here as i guess it's a really simply problem that can be solved for sure. Thx in advance!

Yours,
Andi
karthickeyan 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
Accuracy problem of HO schemes on unstructured mesh, HO scheme gives 1st order result gemini Main CFD Forum 12 December 27, 2011 21:01
Problem with WENO Scheme Ashley Main CFD Forum 0 August 17, 2009 13:37
Problem with leastSquares scheme when using dynamicRefineFvMesh christian_kunkelmann OpenFOAM Running, Solving & CFD 2 July 10, 2009 11:19
Question on Sediment Mass Conservation Scheme Wen Long Main CFD Forum 0 July 6, 2004 15:45
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 08:40


All times are GMT -4. The time now is 14:13.