CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

dimensional agreement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2016, 16:13
Default dimensional agreement
  #1
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hi foamers!
as i mentioned in above! my question is about dimensional agreement in compiling a solver.
i want to add a equation for calculation of density based on T and S ( temp and salinity) :
rho=(rho/998.2*(999.842594+6.793952e-2*T-(9.095290e-3*pow(T,2))+
(1.001685e-4*pow(T,3))-(1.120083e-6*pow(T,4))+(6.536336e-9*pow(T,5))+
*(8.24493e-1-4.0899e-3*T+(7.6438e-5*pow(T,2))-(8.2467e-7*pow(T,3))+
(5.3875e-9*pow(T,4)))+(pow(S,1.5))*(-5.72466e-3+1.0227e-4*T-1.6546e-6*pow(T,2))+S*(4.8314e-4)));

obviously, left and right side have no dimensional agreement somewheres

any would be appreciated
sinatahmooresi is offline   Reply With Quote

Old   May 1, 2016, 03:06
Smile
  #2
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi sina,

1.use volScalarField rho = instead of rho =

2.define a series of nondimensional parameters such as (T/T0)

that T0 is a dummy parameter with temperature dimension and

value equal to 1.
rapierrz is offline   Reply With Quote

Reply


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
Two dimensional simulation of a PEMFC in Fluent fuel cell module A CFD free user FLUENT 1 July 3, 2024 00:19
code development - non dimensional n-s code vs dimensional k-epsilon model Garp Main CFD Forum 2 May 13, 2015 06:50
Two or Three Dimensional for a coil Asghari_M ANSYS Meshing & Geometry 0 June 7, 2011 06:28
importing geometry from three dimensional subject George Kagadis FLUENT 0 September 30, 2004 02:35
Non Dimensional Parameters J.J Main CFD Forum 1 June 28, 2000 21:12


All times are GMT -4. The time now is 04:25.