Difference between revisions of "Presets/energy.xml"
m (Added the formulas per particle) |
m (Added the reduction documentation) |
||
Line 4: | Line 4: | ||
This tool is computing the following energy components variation rates for each particle: | This tool is computing the following energy components variation rates for each particle: | ||
− | |||
− | |||
− | |||
− | |||
<math>\frac{dE^{kin}_a}{dt} = | <math>\frac{dE^{kin}_a}{dt} = | ||
Line 19: | Line 15: | ||
- \frac{m_a}{\rho_a} p_a \nabla \cdot \mathbf{u}_a,</math> | - \frac{m_a}{\rho_a} p_a \nabla \cdot \mathbf{u}_a,</math> | ||
− | + | <math>T \frac{d S_a}{d t} = | |
+ | - \mu \frac{m_a}{\rho_a} \mathbf{u}_a \cdot \Delta \mathbf{u}_a | ||
+ | - \delta \frac{p_a m_a \Delta t}{\rho_0 \rho_a} \Delta p_a,</math> | ||
+ | |||
+ | where <math>E^{kin}_a</math>, <math>E^{pot}_a</math> are the kinetic and the potential energy components for a generic particle ''a'', <math>W_a</math> is the work of the external forces, and <math>S_a</math> is the entropy. | ||
+ | |||
+ | These values per particle are later reduced to the total fluid variation: | ||
+ | |||
+ | <math>\frac{dE^{kin}}{dt} = \sum_{a \in \mathrm{Fluid}}\frac{dE^{kin}_a}{dt},</math> | ||
+ | |||
+ | <math>\frac{dE^{pot}}{dt} = \sum_{a \in \mathrm{Fluid}}\frac{dE^{pot}_a}{dt},</math> | ||
+ | |||
+ | <math>\frac{dW}{dt} = \sum_{a \in \mathrm{Fluid}}\frac{dW_a}{dt},</math> | ||
+ | |||
+ | <math>T \frac{d S}{d t} = \sum_{a \in \mathrm{Fluid}} T \frac{d S_a}{d t}.</math> | ||
== Usage == | == Usage == |
Revision as of 14:20, 2 April 2015
Contents
Introduction
energy.xml is a preset used to compute the fluid energy components. If you wish to print the results in the screen and in an output file include energy_report.xml as well.
This tool is computing the following energy components variation rates for each particle:
where
,
are the kinetic and the potential energy components for a generic particle a,
is the work of the external forces, and
is the entropy.
These values per particle are later reduced to the total fluid variation:
Usage
To use it the following tag should be added to include the preset:
<Include file="/usr/share/aquagpusph/resources/Presets/energy.xml" />
Where /usr/share/aquagpusph/ should be conveniently modified.
This preset should be loaded after cfd.xml.
Variables defined
When this preset is loaded some variables are generated (on top of the default variables of AQUAgpusph):
NAME | TYPE | LENGTH | DESCRIPTION |
var | vec | 1 | desc. |
Tools
The following tools are set to be executed each time step, just before the "t = t + dt" tool. (see Tools and cfd.xml to learn more about this):
NAME | TYPE | DESCRIPTION |
tool | kernel | desc. |