#include <phaseFieldCoupling.h>
Definition at line 41 of file phaseFieldCoupling.h.
◆ parameters
◆ apply()
template<typename CELL , typename PARAMETERS >
| void olb::initialPsi::apply |
( |
CELL & | cell, |
|
|
PARAMETERS & | parameters ) |
|
inline |
Definition at line 50 of file phaseFieldCoupling.h.
51 {
52 using V = typename CELL::value_t;
53 auto w =
parameters.template get<descriptors::INTERFACE_WIDTH>();
54 V phi = cell.template getFieldComponent<descriptors::STATISTIC>(0);
55 V psi = 0;
56 if (phi > (0.99)) {
57 psi += -4.595120;
58 }
59 else if (phi < (0.01)) {
60 psi += 4.595120;
61 }
62 else {
64 }
65 psi *= -w/4.;
66 cell.template setField<descriptors::SCALAR>(psi/
util::sqrt(psi*psi+1.));
67 cell.template setField<descriptors::PSI>(psi);
68 cell.template setField<descriptors::PSI0>(psi);
69 }
ADf< T, DIM > log(const ADf< T, DIM > &a)
meta::list< descriptors::INTERFACE_WIDTH > parameters
References olb::util::log(), and olb::util::sqrt().
◆ getPriority()
| int olb::initialPsi::getPriority |
( |
| ) |
const |
|
inline |
◆ scope
The documentation for this struct was generated from the following file: