The electrostaticDeposition
is a boundary condition to calculate electric potential (V
) on a given boundary based on film thickness (h
) and film resistance (R
) fields which are updated based on a given patch-normal current density field (jn
), Coulombic efficiency and film resistivity.
More...
The electrostaticDeposition
is a boundary condition to calculate electric potential (V
) on a given boundary based on film thickness (h
) and film resistance (R
) fields which are updated based on a given patch-normal current density field (jn
), Coulombic efficiency and film resistivity.
where
![]() | = | Patch-normal current density [A/m^2] |
![]() | = | Electric potential on film-fluid interface [volt = kg m^2/(A s^3)] |
![]() | = | Previous time-step electric potential on the interface [volt] |
![]() | = | Electric potential due to film resistance [volt] |
![]() | = | Electric potential due to body resistance [volt] |
![]() | = | Initial electric potential [volt] |
![]() | = | Film resistance (finite increment) [ohm m^2 = kg m^4/(A^2 s^3)] |
![]() | = | Body resistance [ohm m^2 = kg m^4/(A^2 s^3)] |
![]() | = | Isotropic film resistivity [ohm m = kg m^3/(A^2 s^3)] |
![]() | = | Film thickness [m] |
![]() | = | Volumetric Coulombic efficiency [m^3/(A s)] |
![]() | = | Minimum current density for deposition onset [A/m^2] |
![]() | = | Isotropic conductivity of mixture [S/m = A^2 s^3/(kg m^3)] |
![]() | = | Patch-normal unit vector [-] |
<patchName> { // Mandatory entries type electrostaticDeposition; h <scalarField>; CoulombicEfficiency <PatchFunction1>; resistivity <PatchFunction1>; // Conditional mandatory entries // Option-1: single-phase sigma <scalar>; // Option-2: multiphase phases { alpha.air { sigma <scalar>; } alpha.water { sigma <scalar>; } alpha.mercury { sigma <scalar>; } ... } // Optional entries jMin <scalar>; qMin <scalar>; Rbody <scalar>; Vi <scalar>; Vanode <scalar>; qCumulative <scalarField>; // Inherited entries ... }
where the entries mean:
Property | Description | Type | Reqd | Deflt |
---|---|---|---|---|
type | Type name: electrostaticDeposition | word | yes | - |
h | Film thickness | scalarField | yes | - |
CoulombicEfficiency | Coulombic efficiency | PatchFunction1<scalar> | yes | - |
resistivity | Isotropic film resistivity | PatchFunction1<scalar> | yes | - |
sigma | Isotropic electrical conductivity of phase | scalar | yes | - |
jMin | Minimum current density for deposition onset | scalar | no | 0 |
qMin | Minimum accumulative specific charge for deposition onset | scalar | no | 0 |
Rbody | Resistance due to main body and/or pretreatment layers | scalar | no | 0 |
Vi | Initial electric potential | scalar | no | 0 |
Vanode | Anode electric potential | scalar | no | GREAT |
qCumulative | Accumulative specific charge [A s/m^2] | scalarField | no | 0 |
The inherited entries are elaborated in:
qCumulative
) is less than minimum accumulative specific charge (qMin
), no deposition occurs.resistivity
, jMin
, qMin
and Rbody
are always non-negative.Definition at line 315 of file electrostaticDepositionFvPatchScalarField.H.
electrostaticDepositionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 134 of file electrostaticDepositionFvPatchScalarField.C.
Referenced by electrostaticDepositionFvPatchScalarField::clone().
electrostaticDepositionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 162 of file electrostaticDepositionFvPatchScalarField.C.
References dict, Foam::dimCurrent, Foam::dimLength, Foam::dimMass, Foam::dimTime, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, dictionary::found(), MinMax::ge(), dictionary::getCheck(), Foam::glTF::key(), Foam::nl, fvPatchField::operator, fvPatchField::operator=(), p, phasei, Foam::pow3(), and Foam::sqr().
electrostaticDepositionFvPatchScalarField | ( | const electrostaticDepositionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 278 of file electrostaticDepositionFvPatchScalarField.C.
Definition at line 308 of file electrostaticDepositionFvPatchScalarField.C.
electrostaticDepositionFvPatchScalarField | ( | const electrostaticDepositionFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 335 of file electrostaticDepositionFvPatchScalarField.C.
TypeName | ( | "electrostaticDeposition" | ) |
|
inlinevirtual |
Definition at line 439 of file electrostaticDepositionFvPatchScalarField.H.
References electrostaticDepositionFvPatchScalarField::electrostaticDepositionFvPatchScalarField().
|
inlinevirtual |
Definition at line 456 of file electrostaticDepositionFvPatchScalarField.H.
References electrostaticDepositionFvPatchScalarField::electrostaticDepositionFvPatchScalarField().
|
inlinenoexcept |
Definition at line 472 of file electrostaticDepositionFvPatchScalarField.H.
|
virtual |
Definition at line 364 of file electrostaticDepositionFvPatchScalarField.C.
|
virtual |
Definition at line 387 of file electrostaticDepositionFvPatchScalarField.C.
Foam::tmp< Foam::scalarField > sigma | ( | ) | const |
Definition at line 414 of file electrostaticDepositionFvPatchScalarField.C.
References tmp::New(), Foam::foamVersion::patch, and tmp::ref().
|
virtual |
Definition at line 436 of file electrostaticDepositionFvPatchScalarField.C.
References Foam::endl(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::Info, UPstream::master(), Foam::max(), Foam::min(), Foam::nl, Foam::operator==(), Foam::foamVersion::patch, tmp::ref(), sigma(), and timeIndex.
|
virtual |
Definition at line 537 of file electrostaticDepositionFvPatchScalarField.C.
References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.