|January 27, 2015, 12:38||
UDF problem- time dependent temperature at inlet
Join Date: Oct 2014
Posts: 17Rep Power: 4
I am relatively new to UDF and I am facing a problem in interpreting an UDF defined by me.
The UDF is a time dependent temperature profile for the inlet of 3D model.
While interpreting the UDF, I received a problem stating that there is an error in line 11: subscripted expression is not an array or pointer: int.
the UDF is as follows,
DEFINE_PROFILE(temp_inlet, thread, position)
real t = CURRENT_TIME;
F_CENTROID(f,thread,position) = (3.0e-10*t*t*t*t*t) - (3.0e-07*t*t*t*t) + (0.0001*t*t*t) - (0.0217*t*t) + (1.8728*t) + 70.839
I would like to know if this UDF is correct and also will it work on HP cluster (parallel nodes)??
If this UDF is wrong please give me suggestions to improve it.
Thank you in advance
Last edited by kaeran; January 28, 2015 at 03:31. Reason: changing error
|June 16, 2015, 21:48||
Join Date: Oct 2009
Posts: 52Rep Power: 9
Please use the Power sign. 10*t*t*t**t*t is different than t^5 or 10^5
F_CENTROID(f,thread,position) = (3.0e-(pow(t,5) - (3.0e-07*pow(t,4) + (0.0001*pow(t,3) - (0.0217*pow(t,2)) + (1.8728*t) + 70.839
|Thread||Thread Starter||Forum||Replies||Last Post|
|libOpenSMOKE||Tobi||OpenFOAM Programming & Development||507||March 4, 2016 05:30|
|If statement for time dependent UDF||serhan||Fluent UDF and Scheme Programming||1||July 28, 2014 23:44|
|Time dependent angular velocity calculation UDF||shashankmechguy||Fluent UDF and Scheme Programming||0||June 22, 2014 23:25|
|Low Mixing time Problem||Mavier||CFX||5||April 29, 2013 00:00|
|Could anybody help me see this error and give help||liugx212||OpenFOAM Running, Solving & CFD||3||January 4, 2006 19:07|