dimensional agreement
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 |
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. |
All times are GMT -4. The time now is 09:14. |