OpenFoam c++ syntax for min(... ) equation ?
Hello,
what is the OpenFoam c++ syntax for the following equation: fynew = min(fy, 1.0, 0.5+0.0025*Rt) where fy and Rt are known equations. Klaus |
Hi,
it depends. See http://en.cppreference.com/w/cpp/algorithm/min. So basically you add one more min: fynew = min(fy, min(1.0, 0.5+0.0025*Rt)) |
All times are GMT -4. The time now is 06:49. |