Reply To: Compute and define temperature on a cell.
Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.
› Forums › 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();
