Difference between revisions of "ContribDieselFoamThermophysicalPropertiesLiquidProperties"

From OpenFOAMWiki
(New page: Back == liquidProperties == Defines the liquid properties of the liquid components. The constructor looks like this liquidName nameFromDa...)
 
 
Line 31: Line 31:
 
  liquidProperties
 
  liquidProperties
 
  (
 
  (
     Diesel C10H22 defaultComponents;
+
     Diesel C10H22 defaultCoeffs;
 
  );
 
  );
  
 
The liquid will now have all the properties of n-decane (including latent heat), but when it evaporates it will have all the chemical
 
The liquid will now have all the properties of n-decane (including latent heat), but when it evaporates it will have all the chemical
 
and thermodynamic properties of Diesel.
 
and thermodynamic properties of Diesel.

Latest revision as of 14:35, 15 December 2008

Back

liquidProperties

Defines the liquid properties of the liquid components.

The constructor looks like this

liquidName nameFromDatabase defaultCoeffs;

or

liquidName liquidName ...a looot of coefficients for all the properties.

This constructor is really complex and should be avoided. It is alot easier to use one of the existing fuels, rename it and modify it and compile it into the liquids library.

The liquidName does not have to be the same as the nameFromDatabase.

An example could be that you for instance would like to use different components for the liquid and gas. Assume we have a gaseous fuel with the name Diesel.

The Diesel name is used and defined in chem.inp and therm.dat, but there is no Diesel liquid. For the liquid we would like to use n-decane instead. The constructor would thus look like

liquidComponents
(
    Diesel
);

liquidProperties
(
    Diesel C10H22 defaultCoeffs;
);

The liquid will now have all the properties of n-decane (including latent heat), but when it evaporates it will have all the chemical and thermodynamic properties of Diesel.