#include <phaseFieldCoupling.h>
Definition at line 244 of file phaseFieldCoupling.h.
◆ parameters
◆ apply()
template<typename CELL , typename PARAMETERS >
| void olb::AllenCahnNonLocalHelper::apply |
( |
CELL & | cell, |
|
|
PARAMETERS & | parameters ) |
|
inline |
Definition at line 253 of file phaseFieldCoupling.h.
254 {
255 using V = typename CELL::value_t;
256 V phi = cell.template getFieldComponent<descriptors::STATISTIC>(0);
257 auto epsilon =
parameters.template get<descriptors::EPSILON>();
258
259 V psi = cell.template getField<descriptors::PSI>();
260 V interfaceIndicator = 0;
261 if (
util::fabs(psi) < epsilon) interfaceIndicator = 1;
262 V top = (1.-interfaceIndicator)*phi*(phi-1.)*(phi-0.5);
263 V bottom = (1.-interfaceIndicator)*(1.-phi)*phi;
264
265 cell.template setField<descriptors::TOP>(top);
266 cell.template setField<descriptors::BOTTOM>(bottom);
267 }
meta::list< descriptors::EPSILON > parameters
References olb::util::fabs().
◆ getPriority()
| int olb::AllenCahnNonLocalHelper::getPriority |
( |
| ) |
const |
|
inline |
◆ scope
The documentation for this struct was generated from the following file: