CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Phoenics

How to difine variable in PIL?

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

LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2004, 21:43
Default How to difine variable in PIL?
Posts: n/a
Hi, this is another question from a stupid newbie.

1.It seems that I can define variable in Group 1 or Group 7. What is the difference between them?

2.If I want to use global variable, what should I do? Whether the variable defined in Group 1 or Group 7 can be used along the whole computing process?

3.How to open and write data from a file stored in disk?

Thanks in advance.
  Reply With Quote

Old   December 14, 2004, 11:00
Default Re: How to difine variable in PIL?
A User
Posts: n/a
There is no difference between Group 1 and Group 7, it just defines a framework for entering data in an organised fashion. PIL variables can be declared and used anywhere in the Q1 file.

If by global variable you mean declaring 3d storage for a variable that will be stored over the whole field and then written to the RESULT and PHI files, then by way of an example, you can simply put STORE(EPOT) in Group 7 of the Q1 file, where here EPOT could be the electrical potential. If you want to solve a transport equation for this variable, then you would put SOLVE(EPOT) rather than STORE(EPOT). Use of the latter presumes that the user is going to take responsibility for computing this variable from an auxiliary relationship, say via INFORM, PLANT or by the direct use of FORTRAN in GROUND.

Data files can be opened and written to in GROUND by using FORTRAN.

  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
RP_Set_Real("variable-name", variable name) bohis FLUENT 1 March 9, 2009 08:44
a udf for new variable Asghari FLUENT 2 July 14, 2006 02:15
how to difine bubble size? major FLUENT 0 November 19, 2004 03:00
variable dahuilang Phoenics 1 September 24, 2001 04:22
the variable of RH Burley FLUENT 0 May 4, 2000 06:04

All times are GMT -4. The time now is 18:56.