CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Phoenics (http://www.cfd-online.com/Forums/phoenics/)
-   -   Dear Dr Mike (http://www.cfd-online.com/Forums/phoenics/52144-dear-dr-mike.html)

Mehdi BEN HAJ January 31, 2007 17:27

Dear Dr Mike
 
Hi,

I want to introduce an internal source term (q) in the mass balance equation for generating a water wave.

d(rho)/dt + div(rho*V) = q (1)

I think that the Plant command is:

PLANTBEGIN

**Instruction for q calculation (not given)

PATCH (SP1,PHASEM,IX1,IX2,1,NY,1,NZ,1,LSTEP)

<SORC01> VAL=q

COVAL (SP1,P1 , FIXFLU , GRND )

PLANTEND

Could some one confirm me that this Plant command is right to introduce a source term in equation (1)?

Thanks.

Mike February 2, 2007 06:44

Re: Dear Dr Mike
 
I am not familiar with PLANT because I tend to code the FORTRAN coding directly in GROUND, or to use INFORM. On the face of it, what you have written seems OK. Presumably IX1 and IX2 are defined in the Q1 file.

Mehdi BEN HAJ February 7, 2007 04:18

Re: Dear Dr Mike
 
Dear Dr Mike,

Which expression do you want to use in Inform case.

Regards.


All times are GMT -4. The time now is 11:48.