mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
generate total mole field
This commit is contained in:
@ -13,9 +13,15 @@
|
||||
// probably for particles in OF, not needed when using LIGGGHTS
|
||||
// SLGThermo slgThermo(mesh, thermo);
|
||||
|
||||
basicMultiComponentMixture& composition = thermo.composition();
|
||||
// new class exists in OF4.x containing all material therm props called basicSpecieMixture
|
||||
//basicMultiComponentMixture& composition = thermo.composition();
|
||||
basicSpecieMixture& composition = thermo.composition();
|
||||
PtrList<volScalarField>& Y = composition.Y();
|
||||
|
||||
// The molecular weight [kj/mol] ====== EKI
|
||||
//const volScalarField W(composition.W());
|
||||
const volScalarField& W = composition.W();
|
||||
|
||||
const word inertSpecie(thermo.lookup("inertSpecie"));
|
||||
|
||||
if (!composition.contains(inertSpecie))
|
||||
@ -36,6 +42,21 @@
|
||||
}
|
||||
fields.add(thermo.he());
|
||||
|
||||
// define total number of moles in volume ====== EKI
|
||||
volScalarField N
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"N",
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh
|
||||
);
|
||||
// =============================================
|
||||
|
||||
volScalarField rho
|
||||
(
|
||||
IOobject
|
||||
|
||||
Reference in New Issue
Block a user