Skip to content

Reply To: Periodic boundary


The functor for extracting pressure information SuperLatticePhysPressure2D returns the physical pressure w.r.t. the given unit converter. Currently no SuperLatticePressure2D exists but this would be trivial to implement either by adapting the physical pressure functor or by using functor arithmetic. E.g. (untested):

SuperLatticeDensity2D<T,DESCRIPTOR> densityF(sLattice);
auto latticePressureF = (functor_dsl::lift(densityF) - 1.0) / descriptors::invCs2<T,DESCRIPTOR>();