Presets/cfd
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:
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 indicated 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).
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.