# ablation (1d, 2d, 3d)¶

Computes the surface evaporation parameters for a given material. The description of the parameters specific to ablation is given blelow:

## Parameters¶

variablesType
= ablation
storeSurfaceProperty
= 1. This should be true to vizulaize and utilize the evaluated variables in boundary conditions
in
= vector containing the surface temperature
ablationModel
option to chose the type of ablation model. currently implemented model is sonic, which assumes the vapor expands to sonic speed at the fluid interface.
numConstituents (integer)
is the number of material elements present inside the compound material.
satPressure (real)
The material specific variables of Claussius-Clapeyron equation to obtain the saturation pressure at a given temperature. Each element requires 3 constants reference pressure $$(Pa)$$, enthalpy of evaporation $$(J/mol)$$ and reference temperature $$(K)$$. If there are two elements in the cmpound material, the constants of the second element should be entered right after the first element.
moleFraction (real)
Molefractions of the constiTuents
averageMolecularWeight (real)
average molecular weight of the compound material
out
the result vector consisting of Density $$(kg/m^3)$$, velocity $$(m/s)$$, temperature $$(K)$$, pressure $$(Pa)$$, saturation pressure $$(Pa)$$, and number density $$(1/m^3)$$ of the compound material.

## Example¶

Code block

<Updater computeAbSurfProp>
kind = surfaceVariables2d
onGrid = domain
variablesType = ablation
storeSurfaceProperty = 1
dynVectors = []

in = [surfTemp]

ablationModel = sonic
numConstituents = 2
satPressure = [p01 dh1 T01 p02 dh2 T02]
moleFraction = [MolF1 MolF2]
averageMolecularWeight = MWAvg

out = [abSurfProp]

entity = left
</Updater>