Introduction
cfd.xml is the main preset to be loaded in order to perform Fluid Dynamics simulations.
Governing equations
The following governing equations are approximately solved with this preset (called conservation of mass equation, momentum equation, and equation of state):
where
and
are the density and the velocity respectively,
is an external volumetric force field,
is the pressure, and
is the stress tensor for a Newtonian fluid:
with
and
the viscous coefficients and
the rate of strain tensor:
As it has been stated in the 3rd governing equation (formerly Equation Of State, or EOS), we need to stablish a relation between the density and the pressure:
where
is the sound speed (at least 10 times the maximum speed expected during the simulation),
the density of reference of the fluid, and
an incompressibility factor (1 is recommended, but it can be increased to get better incompressibility properties).
Numerical modelling
Conservation of mass equation
As usual in SPH the fluid domain is discretized in a set of particles, such that the aproximate solution of the conservation of mass equation can be written as:
where
and
are particle indexes,
and
their positions,
the mass of the particle
,
and
the outward normal and the surface of the boundary element
, and
a renormalization factor:
Using cfd.xml
To use it just use the include tag:
<Include file="/usr/share/aquagpusph/resources/Presets/domain.xml" />
Where /usr/share/aquagpusph/ should be conveniently modified. For backguard compatibility you can include /usr/share/aquagpusph/resources/OpenCLMain.xml instead (it is just including cfd.xml).
This preset should be included before any other one.
Variables defined