CFD Online Logo CFD Online URL
Home > Forums > Phoenics

GENK, GEN1 or LGEN1 ???

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

LinkBack Thread Tools Display Modes
Old   February 4, 2003, 06:20
Default GENK, GEN1 or LGEN1 ???
Phoenics user
Posts: n/a
Hi!!! ¿what is the difference between LGEN1, GEN1 & GENK????

I have found that in some subrutines GEN1 is always used, and I don't find where LGEN1 is used. I want to use the square root of the generation function. This is SQRT(LGEN1) or simply LGEN1 ??? or SQRT(GEN1) ???

Someone could give me an answer ??? Thanks!
  Reply With Quote

Old   February 11, 2003, 06:17
Default Re: GENK, GEN1 or LGEN1 ???
Posts: n/a
If you put STORE(GEN1) in the Q1 file this will create 3d whole-field storage of mean rate of strain (generation function).

If you put STORE(GENK) in the Q1 file this will create 3d whole-field storage of production rate of turbulence energy (turbulent viscosity*generation function.

Then in any GROUND coding that you create you would use LBGEN1=LBNAME('GEN1') and LBGENK=LBNAME('GENK') to define the index for use in say call's to FN subroutines.

Note also that GEN1 is a 2d store of the current mean rate of strain at a given IZ slab. Therefore, this index can also be used in FN subroutines, but only within the PHOENICS IZ loop.

You cannot simply say SQRT(GEN1) because GEN1 is an index. You will need to call an FN subroutine to take the square root, or alternatively construct a do loop which accesses the F-array, i.e.


do j=1,nxny



where the PHOENICS integer function L0F returns the location in the F-array of the 2d store GEN1.

  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
GENK prblems - a bug ????? mazza Phoenics 4 May 25, 2001 10:32

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