CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   power law field function (https://www.cfd-online.com/Forums/star-ccm/142794-power-law-field-function.html)

Gab October 9, 2014 15:39

power law field function
 
I have been trying to run a simulation with the following power law atmospheric velocity profile: u(y) = 6*(y/0.5)^0.23

I have used the following syntax to make a scaler field function: 6*pow(($$Position[1]/0.5),0.23).

This is then set as the inlet velocity condition. However, when I run a single iteration I get a floating point exception error pointing to the field function position.

If anyone has any idea what the problem could be, your advice would be much appreciated.

Thanks

Gary6891 October 23, 2014 14:42

It might be that power law as field function just does not work for this purpose due to numerics, other option is to generate table using this same equation and import that as a table. That will work

SideShow November 11, 2014 16:48

Try $$Centroid instead of $$Position


All times are GMT -4. The time now is 13:24.