plasmaReactingFoam swarm parameter mueN DeN Te unit conversion and ng update at each time step

This commit is contained in:
ignis 2016-10-09 20:20:26 +09:00
parent b5071526b7
commit 52e0bd19a1
3 changed files with 29 additions and 4 deletions

View file

@ -7,5 +7,8 @@
);
E = -fvc::grad(Phi);
ng = p / T * (NA / R);
En = mag(E) / (ng);
}

View file

@ -17,10 +17,11 @@ tmp<fv::convectionScheme<scalar> > mvConvection
forAll(rho, celli)
{
const scalar Eni = En[celli];
De[celli] = DeN.value(Eni);
mue[celli] = mueN.value(Eni);
Te[celli] = TeOfEn.value(Eni);
const scalar Eni = En[celli] * EnFac;
De[celli] = DeN.value(Eni) * DeNFac;
mue[celli] = mueN.value(Eni) * mueNFac;
Te[celli] = TeOfEn.value(Eni) * TeFac;
}
De.correctBoundaryConditions();
mue.correctBoundaryConditions();

View file

@ -17,9 +17,30 @@ dimensionedScalar epsilon0
physicalProperties.lookup("epsilon0")
);
// Convert E/n in SI unit to table unit.
// Default V m^2 => Td
scalar EnFac (
physicalProperties.lookupOrDefault("EnFac", 1.0e21)
);
CSV<scalar> mueN("mueN", physicalProperties);
// Convert mu_e * n_g value from table into SI unit.
scalar mueNFac (
physicalProperties.lookupOrDefault("mueNFac", 1.0)
);
CSV<scalar> DeN("DeN", physicalProperties);
// Convert D_e * n_g value from table into SI unit.
scalar DeNFac (
physicalProperties.lookupOrDefault("DeNFac", 1.0)
);
CSV<scalar> TeOfEn("TeOfEn", physicalProperties);
// Convert T_e value from table into SI unit.
scalar TeFac (
physicalProperties.lookupOrDefault("TeFac", 1.0)
);
Info<< "Reading field Phi\n" << endl;
volScalarField Phi