CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Define_geom????? (https://www.cfd-online.com/Forums/fluent/125519-define_geom.html)

h.iraji October 27, 2013 09:22

Define_geom?????
 
1 Attachment(s)
HI
I want to deforming thickness variations of the pressure plate in each cell(Cells of the upper face plate):
y=0.2601*exp(-6.147e-X*0.5) + 0.5091*exp(X*(-0.0007079))
(X=pressure , Y= thickness variation).

for this purpose i writed below udf but incorect:

#include "udf.h"
#include "mem.h"
DEFINE_GEOM(deforming,domain,dt,position)
{
cell_t c;
Thread *t;
real *position;
begin_c_loop_all(c,t)
{
position=0.2601*exp((-6.147e(-5))-C_P(c,t)*0.5) + 0.5091*exp(C_P(c,t)*(-0.0007079));
}
end_c_loop_all(c,t)
return;
}

Error: line 10: parse error

can anyone help me in regarding with above problem….:confused::confused:
thanks


All times are GMT -4. The time now is 03:10.