☰
Sampling
1) The fieldPropertiesDict dictionary
This dictionary located in the dsmcFields()
inside which a
dsmcFields
(
field
{
fieldModel dsmcVolFields;
[...]
}
field
{
fieldModel dsmcVolFields;
[...]
}
);
The dsmcFields()
list should be left empty when there is no need to reconstruct macroscopic fields.
For the N2 species, the macroscopic fields printed by default are:
dsmcN_N2
: instantaneous number of DSMC parcelsdsmcNMean_N2
: sampled number of DSMC parcelsrhoN_N2
: number densityrhoM_N2
: densityU_N2
: velocity vectorMa_N2
: mach numberp_N2
: pressure (or partial pressure for a mixture)Ttra_N2
: translational temperatureTrot_N2
: rotational temperatureTvib_N2
: vibrational temperatureTelec_N2
: electronic temperatureTov_N2
: overall temperaturefD_N2
: force densitywallShearStress_N2
: wall shear stresswallHeatFlux_N2
: wall heat flux
The fields cellLevel
and dsmcSigmaTcRMax
have already been introduced in F.2.2 Initial volume fields.
2) Steady-state simulations
In the example below, macroscopic quantities are computed for the N2 species (see the _N2
((N2 O2 NO N O)
, providing that these species are the ones defined in A.1 Species thermophysical properties. The suffix is set to be _mixture
.
dsmcFields
(
field
{
fieldModel dsmcVolFields;
timeProperties
{
timeOption write;
resetAtOutput on;
resetAtOutputUntilTime 1e-3;
}
dsmcVolFieldsProperties
{
fieldName N2;
typeIds (N2);
}
}
field
{
fieldModel dsmcVolFields;
timeProperties
{
timeOption write;
resetAtOutput on;
resetAtOutputUntilTime 1e-3;
}
dsmcVolFieldsProperties
{
fieldName mixture;
typeIds (N2 O2 NO N O);
}
}
);
There are two important parameters in
3) Transient simulations
4) Mean free path computation
To compute the mean free path and related fields, the
- mean free path:
mfp
- mean free path to cell size ratio:
mfpToDx
- mean free path to mean collision separation ratio:
SOFP
- mean collision time:
mct
- mean collision time to time-step ratio:
mctToDt
5) Resume sampling
Sampling can be resumed even when the simulation has stopped, providing that the
reconstrucPar -latestTime
- delete everything but the
time/uniform/ sub-folder in the processors directories and store them inbackup-processors - prior to resuming the simulation:
cp -r backup-processors/processor* . && decomposePar -force -latestTime
NB: the same number of CPUs must be used throughout the entire simulation as the resumeSampling_#fieldName
files located in
For more information, please read Issue #73.