CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Phoenics (
-   -   Time Dependent property (

S Rhie August 21, 2001 17:39

Time Dependent property
I am trying to solve the problem with various air properties(desity, diffusion coeff.) according to the time variation. Can someone please help me how to do? Thanks


ps: I have phoenics 2.2

kike August 28, 2001 05:43

Re: Time Dependent property
Dear SC Rhie

PHOENICS have implemented several models to handle fluid properties. If you are completlely sure your desired model is not included then continue to read this, otherwise stop and read POLIS entry for Fluid Properties.

It is simple but difficult to explain without to know how familiar you are with GROUND programming. Nevetheless we will try. OK?

I will assume you have a recomplilable PHOENICS version and you have designed your Q1 to solve a time dependent problem.

If you want to include a model for density (for example) insert this line into Q1 file


Now you will have to assign your time dependency into GROUND. You will need the index ISTEP for the time step and the value of DT for time step size. You should add the proper code lines for store the total physical (or dimensionless) time. Moves into the Group 9 in GROUND (Section GRND, not GRND1, nor any GRND#) and insert the desired model. You will also need the index DEN1 for density.

Suppose I have a 2D problem with a cartesian grid and I want to increase the density every time step multiplying its value by a function "GFUNCT" of the elapsed time. I have the physical (total) time stored into TOTIME. Every time step I will update TOTIME and the value of function "GFUNCT"


Then into the Group 9 (GRND density section) I will insert the following lines






Depending on how you have compiled your sources (I mean copiler options for variables) or how you declare the integer variable L0DEN1 you can move the line


to Group 1 to save some time. If your problem is 3D the procedure is a little more complex but it is still easy to implement.

I hope this helps you. Regards


David Glynn August 28, 2001 12:12

Re: Time Dependent property
Is the density really changing in time alone, and not in response to other changes in the flow? Maybe so, but this strikes me as unusual. If this really is true, you need to do it in Ground, as Kike suggests.

All times are GMT -4. The time now is 21:29.