CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Scalar transport equation dimension problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2007, 05:46
Default Hi How to use 'rho' in a sca
  #1
litonx
Guest
 
Posts: n/a
Hi
How to use 'rho' in a scalar transport equation. If i use like following,
ddt(rho, T)+div(phi,T)+laplacian(K,T), I have dimension problem..
T=dimLess
ddt(rho, T)= 1/s kg/m3

phi=linearInterpolate(rho*U) & mesh.Sf()
div(phi,T)=1/m kg/m3 m/s m2
=kg/m-s
Therefore different dimensions. In rhoTurboFoam momenturm equation is working with this definitaion. I could not understand where is my mistake. Anyone help me please !!

Regards
-Liton
  Reply With Quote

Old   February 27, 2007, 12:24
Default hi, i think if you using th
  #2
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 8
stephan is on a distinguished road
hi,

i think if you using the same argument for the momentum equation in rhoTurbFoam you will find the same problem.
it's the m^2-term which is not there: writing the transport equations with div for the convection implies that this term is an volume integral
(gauss:int (dui/dxi ) dV =int ui dAi)
i guess the problem with the dimension comes from the laplacian term.
what dimension has k in your set up (there should be no kelvin in the dimension, [k]=kg/(s*m)) ?
stephan
stephan is offline   Reply With Quote

Old   February 27, 2007, 18:13
Default Hi Stephan Gerber, Thanks for
  #3
litonx
Guest
 
Posts: n/a
Hi Stephan Gerber, Thanks for your reply. actually i wrote the equation in a wrong fashion. When I printed the phi, I found its dim is 1/s .. as mesh.Sf() is area vector I thought the dimension of area must be multiplied with the U.

one more question. if I declare a volScalarField like following:

volScalarField XXX
(
IOObject(
..
..
),
c1+c2
)

where c1 and c2 dimensionedScalar. If c1 or c2 update, XXX won't update automatically. How to get the update of XXX. I used like following
XXX=c1+c2;
It works, but it does not seem to me very convenient. Any tips!!

Regards - Liton
  Reply With Quote

Old   March 2, 2007, 07:49
Default hi, you may combine calcula
  #4
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 8
stephan is on a distinguished road
hi,

you may combine calculating XXX=c1+c2 with calling XXX (some kind of special-output routine for XXX) which calculates the equation - so you wont have to calculate explicitly.
maybe there is a nice way using pointers or references?
stephan
stephan is offline   Reply With Quote

Reply

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
Re: scalar transport equation problem Benny FLUENT 4 May 9, 2010 22:12
Scalar transport Sanchit CFX 0 September 29, 2008 07:46
transport equation for SGS scalar variance chinthakindi Main CFD Forum 0 April 27, 2004 09:26
The Time dependent Scalar-Transport Equation Michail Main CFD Forum 0 April 26, 2004 19:07
concentration dimension of the scalar j CD-adapco 1 May 22, 2003 12:42


All times are GMT -4. The time now is 05:17.