CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

coding

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2009, 15:58
Default coding
  #1
New Member
 
Mohammad
Join Date: Jul 2009
Posts: 4
Rep Power: 16
Moradi is on a distinguished road
Hi,
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.
thanks.
Moradi is offline   Reply With Quote

Old   July 4, 2009, 02:13
Default
  #2
Member
 
Mohammad Reza Hadian
Join Date: Mar 2009
Location: Yazd, Iran
Posts: 52
Rep Power: 17
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, 10:53
Default thanks for your answer
  #3
New Member
 
Mohammad
Join Date: Jul 2009
Posts: 4
Rep Power: 16
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,
Mohammad.
Moradi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 06:12
Coding begineer of cfd Main CFD Forum 1 July 21, 2004 06:11
Ground coding enquiry Wenqing Zhang Phoenics 2 August 12, 2002 12:56
total pressure without ground coding? Vinod Venugopalan Phoenics 1 May 28, 2002 01:25
User coding on NT w2k Philip Jones Siemens 0 November 26, 2001 04:43


All times are GMT -4. The time now is 14:45.