These functions calculate the specie-flux and write it as a
surfaceScalarField called 'specie<Type>Flux(<specieName>)'. There are
three such functions; specieAdvectiveFlux and specieDiffusiveFlux return
the advective and diffusive parts of the flux, respectively, and
specieFlux returns the total combined flux.
Example of function object specification:
specieFlux
{
type specieFlux; // specieAdvectiveFlux, specieDiffusiveFlux
libs ("libfieldFunctionObjects.so");
field NH3;
}
Or, using the standard configuration:
#includeFunc specieFlux(NH3)
10 lines
264 B
Bash
Executable File
10 lines
264 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial clean functions
|
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
|
|
|
cleanCase && rm -rf 0/specieFlux* 0/uniform
|
|
|
|
#------------------------------------------------------------------------------
|