CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum


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

LinkBack Thread Tools Display Modes
Old   July 2, 2009, 14:58
Default coding
New Member
Join Date: Jul 2009
Posts: 4
Rep Power: 10
Moradi is on a distinguished road
Do somebody know about coding in collocated grid?
I wan't to know which option is more proper:
1) storing the variable density and viscosity, when they vary.
2) calculating them when they are required.

there is a material in the fluid that changes fluid's density and viscosity. this change is due to the concentration of this material.
Moradi is offline   Reply With Quote

Old   July 4, 2009, 01:13
Mohammad Reza Hadian
Join Date: Mar 2009
Location: Yazd, Iran
Posts: 52
Rep Power: 10
hadian is on a distinguished road
it depends on your code. how many times do you need these variables.
in my code the eddy viscosity was needed in different parts and i stored them. if you need the variables only one time, maybe it is better not to store them. if you need them in different part (mometum equations, pressure equation and subroutine for printing output) you should store them.
hadian is offline   Reply With Quote

Old   July 6, 2009, 09:53
Default thanks for your answer
New Member
Join Date: Jul 2009
Posts: 4
Rep Power: 10
Moradi is on a distinguished road
Dear Hadian,

Yes, I think you are right.
I have already stored them.
I need the density and viscosity many times.

Thanks again,
Moradi is offline   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
Help with coding James Main CFD Forum 2 May 18, 2005 05:12
Coding begineer of cfd Main CFD Forum 1 July 21, 2004 05:11
Ground coding enquiry Wenqing Zhang Phoenics 2 August 12, 2002 11:56
total pressure without ground coding? Vinod Venugopalan Phoenics 1 May 28, 2002 00:25
User coding on NT w2k Philip Jones Siemens 0 November 26, 2001 04:43

All times are GMT -4. The time now is 09:26.