Skip to main content

timeVaryingMassSorption

Description

The timeVaryingMassSorption is a boundary condition that provides a first order fixed-value condition for a given scalar field to model time-dependent adsorption-desoprtion processes to be used with the interfaceOxideRate mass model

dcdt=kabsw(cintcpw)+kdes(cpwcint) \frac{d c}{d t} = k_{abs} w (c_{int} - c_{p_{w}}) + k_{des} (c_{p_{w}} - c_{int}) w=max(1cpw/max,0) w = \max(1 - c_{p_{w}}/max, 0)

where:

PropertyDescription
cintc_{int}Concentration at cell
cpwc_{p_{w}}Concentration at wall
kabsk_{abs}Adsorption rate constant [1/s]
kdesk_{des}Desorption rate constant [1/s]
wwWeight function
maxmaxMax concentration at wall

Usage

The condition requires entries in both the boundary and field files.

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
type timeVaryingMassSorption;
kbas <scalar>;
max <scalar>;

// Optional entries
kdes <scalar>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: timeVaryingAdsorptionwordyes-
kbasAdsorption rate constantscalaryes-
maxMaximum concentation at wallscalaryes-
kdesDesorption rate constantscalarno0

The inherited entries are elaborated in:

  • fixedValueFvPatchField.H

Further information

Tutorial:

Source code:

API:

History: Introduced in version v2106