|
[Sponsors] |
December 13, 2004, 20:43 |
How to difine variable in PIL?
|
#1 |
Guest
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. |
|
December 14, 2004, 10:00 |
Re: How to difine variable in PIL?
|
#2 |
Guest
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
RP_Set_Real("variable-name", variable name) | bohis | FLUENT | 1 | March 9, 2009 07:44 |
a udf for new variable | Asghari | FLUENT | 2 | July 14, 2006 01:15 |
how to difine bubble size? | major | FLUENT | 0 | November 19, 2004 02:00 |
variable | dahuilang | Phoenics | 1 | September 24, 2001 03:22 |
the variable of RH | Burley | FLUENT | 0 | May 4, 2000 05:04 |