electron and ion drift relaxation
This commit is contained in:
parent
63419630cc
commit
005aa102df
3 changed files with 14 additions and 0 deletions
|
|
@ -119,6 +119,11 @@ tmp<fv::convectionScheme<scalar> > mvConvection
|
|||
{
|
||||
phis[i] = phi;
|
||||
phis[i] += fvc::interpolate((rho*Di/T*(eCharge*z/kB))*E) & mesh.Sf();
|
||||
|
||||
if (relaxDrift < 1.0 && relaxDrift > 0.0)
|
||||
{
|
||||
phis[i] *= relaxDrift;
|
||||
}
|
||||
}
|
||||
|
||||
if (ions.contains(Y[i].name()))
|
||||
|
|
|
|||
|
|
@ -12,6 +12,11 @@ IOdictionary physicalProperties
|
|||
)
|
||||
);
|
||||
|
||||
scalar relaxDrift
|
||||
(
|
||||
physicalProperties.lookupOrDefault("relaxDrift", 1.0)
|
||||
);
|
||||
|
||||
dimensionedScalar epsilon0
|
||||
(
|
||||
physicalProperties.lookup("epsilon0")
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@
|
|||
|
||||
|
||||
Udrift = -(mue/ng)*E;
|
||||
if (relaxDrift < 1.0 && relaxDrift > 0.0)
|
||||
{
|
||||
Udrift *= relaxDrift;
|
||||
}
|
||||
Uthermal = -((De/ng/Te)*fvc::grad(Te));
|
||||
ve = (linearInterpolate(Udrift+Uthermal) & mesh.Sf()) + q;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue