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.
Hello,
I tried earlier with computeRho and defineRho, however I got an error while compiling.
cell.neighbor({n0,n1}).computeRho(u_neighbor1.data());
So this is the code. I wanted to calculate the the temperature on this cell, where n0 is the normal in the tangential direction(0 in this case) and n1 is the normal in the y direction. This code works fine when I use the computeU and defineU functions. But for the Rho it is giving me the following error.
error: no matching function for call to ‘olb::Cell<double, olb::descriptors::D2Q5<olb::descriptors::VELOCITY> >::computeRho(double*)’
Could you please help me in solving the error?
Thank-you,
Sahil Bhapkar