Skip to content

Re: Pressure Inlet

#2508
takamori67
Member

Hi Robin,
thanks for the insight!
When I initialize it with the rho converted from the pressure (with a transition factor) it succeeds to compile

Quote:
AnalyticalConst3D<T,T> rhoIn(frac[0]*converter.rhoFromPhysicalPressure(pIn));

However, when I initialize it with a value, let’s say 1 and after that set it to the convertetd rho, it fails to compile.

Quote:
AnalyticalConst3D<T,T> rhoIn(1);
rhoIn = frac[0]*converter.rhoFromPhysicalPressure(pIn);

Is this because once initialized, the AnalyticalConstant3D is cannot be changed?

Thanks for the great and quick help, Robin!

Best,
Sumit