676 {
677 using V = typename CELL::value_t;
678 using DESCRIPTOR = typename CELL::descriptor_t;
679
680 V phi = cell.template getFieldComponent<descriptors::STATISTIC>(0);
681 V laplacePhi = 0;
682
683 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
686 }
687
688 auto sigma =
parameters.template get<descriptors::SCALAR>();
689 auto w =
parameters.template get<descriptors::INTERFACE_WIDTH>();
690
691
692 V k = 1.5*sigma*w;
693 V beta = 12*sigma/w;
694 V mu = 4*beta*phi*(phi-1.)*(phi-0.5)+0.25*(phi<0)*phi-k*laplacePhi;
695 cell.template setField<descriptors::CHEM_POTENTIAL>(mu);
696 }
constexpr T invCs2() any_platform
constexpr T t(unsigned iPop, tag::CUM) any_platform
constexpr int c(unsigned iPop, unsigned iDim) any_platform
meta::list< descriptors::SCALAR, descriptors::INTERFACE_WIDTH > parameters