|August 7, 2002, 15:18||
UDF for Electrostatic Field
Could you check this UDF for me please?
The electrostatic field defined using UDS. I want to add the electrostatic force acting on a charged particles in the field. The following is a simple code.
#define PI 3.14159265
#define EPS 8.854e-12
DEFINE_DPM_BODY_FORCE(particle_body_force, p, i)
real Q = 2.0e-6; /* Particle electric charge */
C_CENTROID(x, c, t);
y = 0.3 - x;
bforce = C_UDSI_G(c,t,0)[i]*1000.0*Q + Q*Q/(16.0*PI*EPS*y*y)*(C_UDSI_G(c,t,0)[i]/NV_MAG(C_UDSI_G(c,t,0)));
|August 11, 2002, 21:58||
Re: UDF for Electrostatic Field
Could you plz help me, which particles u using, where did get information about Q, which equation u r using?
look, u wrote bforce= ..............., at the end of the equation there are 3 ))), I think this could be a problem. look according to your equation whether is it correct of not?
|Thread||Thread Starter||Forum||Replies||Last Post|
|Drag coefficient, DPM.||jorge poyatos||FLUENT||14||January 20, 2012 14:41|
|UDF parallel error: chip-exec: function not found?????||shankara.2||Fluent UDF and Scheme Programming||1||January 16, 2012 23:14|
|Porosity field in Fluent||wojciech||FLUENT||1||September 20, 2010 11:19|
|Help Parallelizing UDF||AndresC||FLUENT||0||February 25, 2010 16:50|
|UDF...UDF...UDF...UDF||Luc SEMINEL||FLUENT||0||November 25, 2002 05:03|