Difference between revisions of "Presets/energy.xml"
m (→Variables defined) |
m (Tools) |
||
Line 137: | Line 137: | ||
| DESCRIPTION | | DESCRIPTION | ||
|- | |- | ||
− | | | + | | Energy |
| [[Tools#kernel|kernel]] | | [[Tools#kernel|kernel]] | ||
− | | | + | | Compute the energy components variation rate per particle (see [[#Introduction|the introduction]]). |
+ | |- | ||
+ | | dSdt | ||
+ | | [[Tools#reduction|reduction]] | ||
+ | | Compute the total entropy variation rate (see [[#Introduction|the introduction]]). | ||
+ | |- | ||
+ | | dEkindt | ||
+ | | [[Tools#reduction|reduction]] | ||
+ | | Compute the total kinetic energy variation rate (see [[#Introduction|the introduction]]). | ||
+ | |- | ||
+ | | dEpotdt | ||
+ | | [[Tools#reduction|reduction]] | ||
+ | | Compute the total potential energy variation rate (see [[#Introduction|the introduction]]). | ||
+ | |- | ||
+ | | dWdt | ||
+ | | [[Tools#reduction|reduction]] | ||
+ | | Compute the total external forces work variation rate (see [[#Introduction|the introduction]]). | ||
+ | |- | ||
+ | | dEintdt | ||
+ | | [[Tools#set_scalar|set_scalar]] | ||
+ | | Compute the total internal energy variation rate (see [[#Introduction|the introduction]]). | ||
+ | |- | ||
+ | | Eint | ||
+ | | [[Tools#set_scalar|set_scalar]] | ||
+ | | Integrate the total internal energy, i.e. <math>U_{n+1} = U_n + \Delta t \, \frac{dU_n}{dt}</math>. | ||
+ | |- | ||
+ | | ES | ||
+ | | [[Tools#set_scalar|set_scalar]] | ||
+ | | Integrate the total entropy, i.e. <math>S_{n+1} = S_n + \Delta t \, \frac{dS_n}{dt}</math>. | ||
+ | |- | ||
+ | | Ekin | ||
+ | | [[Tools#set_scalar|set_scalar]] | ||
+ | | Integrate the total kinetic energy, i.e. <math>E^{kin}_{n+1} = E^{kin}_n + \Delta t \, \frac{dE^{kin}_n}{dt}</math>. | ||
+ | |- | ||
+ | | Epot | ||
+ | | [[Tools#set_scalar|set_scalar]] | ||
+ | | Integrate the total potential energy, i.e. <math>E^{pot}_{n+1} = E^{pot}_n + \Delta t \, \frac{dE^{pot}_n}{dt}</math>. | ||
+ | |- | ||
+ | | EW | ||
+ | | [[Tools#set_scalar|set_scalar]] | ||
+ | | Integrate the total external forces work, i.e. <math>W_{n+1} = W_n + \Delta t \, \frac{dW_n}{dt}</math>. | ||
|} | |} | ||
Revision as of 14:45, 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:
The total internal energy variation can be then computed as:
Finally these variables are numerically integrated by a simple Euler scheme.
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 |
energy_dEintdt | float | 1 | Total internal energy variation rate, |
energy_Eint | float | 1 | Total internal energy, |
energy_dsdt | float* | N | Entropy variation rate, |
energy_dSdt | float | 1 | Total entropy variation rate, |
energy_S | float | 1 | Total entropy, |
energy_dekindt | float* | N | Kinetic energy variation rate, |
energy_dEkindt | float | 1 | Total kinetic energy variation rate, |
energy_Ekin | float | 1 | Total kinetic energy, |
energy_depotdt | float* | N | Potential energy variation rate, |
energy_dEpotdt | float | 1 | Total potential energy variation rate, |
energy_Epot | float | 1 | Total potential energy, |
energy_dwdt | float* | N | External forces work variation rate, |
energy_dWdt | float | 1 | Total external forces work variation rate, |
energy_W | float | 1 | Total external forces work, |
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 |
Energy | kernel | Compute the energy components variation rate per particle (see the introduction). |
dSdt | reduction | Compute the total entropy variation rate (see the introduction). |
dEkindt | reduction | Compute the total kinetic energy variation rate (see the introduction). |
dEpotdt | reduction | Compute the total potential energy variation rate (see the introduction). |
dWdt | reduction | Compute the total external forces work variation rate (see the introduction). |
dEintdt | set_scalar | Compute the total internal energy variation rate (see the introduction). |
Eint | set_scalar | Integrate the total internal energy, i.e. |
ES | set_scalar | Integrate the total entropy, i.e. |
Ekin | set_scalar | Integrate the total kinetic energy, i.e. |
Epot | set_scalar | Integrate the total potential energy, i.e. |
EW | set_scalar | Integrate the total external forces work, i.e. |