Reply To: Compute and define temperature on a cell.
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Compute and define temperature on a cell. › Reply To: Compute and define temperature on a cell.
April 27, 2022 at 11:37 am
#6518
Adrian
Keymaster
The signature of the computeRho
method you want to call is:
T olb::ConstCell<T,DESCRIPTOR>::computeRho() const
i.e. it returns the value of rho as a value, not by writing it to a given pointer.
This means that you need to write e.g.:
T rho = cell.neighbor({n0,n1}).computeRho();