#include <phaseFieldCoupling.h>
Definition at line 185 of file phaseFieldCoupling.h.
◆ parameters
◆ apply()
template<typename CELL , typename PARAMETERS >
| void olb::psiEvolve::apply |
( |
CELL & | cell, |
|
|
PARAMETERS & | parameters ) |
|
inline |
Definition at line 195 of file phaseFieldCoupling.h.
196 {
197 using V = typename CELL::value_t;
199 auto epsilon =
parameters.template get<descriptors::EPSILON>();
200 auto s = cell.template getField<descriptors::SCALAR>();
201 auto psi = cell.template getField<descriptors::PSI>();
202 V psi_new = psi;
203 if (
util::fabs(psi) >= epsilon) cell.template setField<descriptors::PSI>(psi_new);
204 else {
205 auto normGradPsi = cell.template getField<descriptors::NORMGRADPSI>();
206 psi_new = psi-dt*
s*(normGradPsi-1.);
207 cell.template setField<descriptors::PSI>(psi_new);
208 }
209 }
platform_constant Fraction s[Q]
meta::list< DELTAT, descriptors::EPSILON > parameters
References olb::util::fabs().
◆ getPriority()
| int olb::psiEvolve::getPriority |
( |
| ) |
const |
|
inline |
◆ scope
The documentation for this struct was generated from the following file: