Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sfotovati

Pages: [1]
1
Fluent / Re: Standard Collision Macro
« on: July 13, 2012, 09:07:51 PM »
I have no problem, using DEFINE_DPM_SPRAY_COLLIDE. the problem is that, as I am using this macro, I bypass Fluent default method for collisions of droplets. I am looking for any way to call this default method back in my UDF, if it is needed.

2
Fluent / Re: Porous media in Fluent
« on: July 13, 2012, 09:06:00 PM »
Simply draw the geometry in Gambit or Cubit or any other meshing software. the only important thing is to specify different zones for wire (solid), polymer (Fluid1), media(fluid 2)... The in Fluent, mark polymer (zone for fluid 1) as porous. specify the correct porousity and you are done.

good luck,

Sean

3
Fluent / Standard Collision Macro
« on: July 11, 2012, 12:02:29 AM »
Hi all,

I am writing a UDF for particles collision. At some point and under some certain situations, I need to call the standard Particle Collision macro that Fluent uses by default.

Does anyone know how should I do that?

thanks.

Sean

4
Fluent / Re: Body Force UDF problem
« on: June 26, 2012, 12:48:31 AM »
Thanks,

But apparently, if you want to combine the above with define_dpm_body_force, it cannot be done. All you mentioned is correct if one does not aim to combine it with macros which consider tracked particles in sequential order.

Thank you anyway,

5
Fluent / Re: Body Force UDF problem
« on: June 20, 2012, 04:34:36 PM »
William, Even though I used those macros for obtaining cell and thread of the particle, it still does not let me to loop over other particles. So I am still recieving the same error!  :-[


6
Fluent / Re: Body Force UDF problem
« on: June 20, 2012, 07:26:35 AM »
Thanks for the hint.

I am wondering to know if I use the above to obtain cell and thread, then can I use begin_particle_cell_loop or not?

7
Fluent / Re: Particle injection in DPM
« on: June 17, 2012, 01:51:08 AM »
hi William,

I wrote the following UDF to add the effects of other particles on the tracked particles as a body force.

DEFINE_DPM_BODY_FORCE(partbf,p,i)
{
   double bforce=0., Bc=0.;
   Thread *t;
    cell_t c;
   
   Particle *pi;

   t = P_CELL_THREAD(p);
    c = P_CELL(p);

   if (Data_Valid_P())
   {
   begin_particle_cell_loop(pi,c,t)
   {
         Bc+=P_MASS(pi);
   }
   end_particle_cell_loop(pi,c,t)
   }


    bforce=Bc/PMASS(p)+1.;         /*i component, x,y,or z component force*/ 
    return bforce;  /*return the acceleration*/
}

as I run it, it gives "FLUENT received fatal signal (ACCESS_VIOLATION)" error. I believe it is because of "begin_particle_cell_loop" macro. Do you have any idea why this happens? How can I use "begin_particle_cell_loop" macro properly?

Thank you very much for your help.

Sean.

8
Fluent / Body Force UDF problem
« on: June 17, 2012, 12:45:22 AM »
hi every body,

I wrote the following UDF:

# include "udf.h"
# include "stdio.h"
# include "dpm.h"
# include "mem.h"
# include "surf.h"
# define mag 2.0
DEFINE_DPM_BODY_FORCE(partbf,p,i)
{
    double bforce=0., Bc=0.;
    Thread *t;
    cell_t c;
    Particle *pi;
    t = P_CELL_THREAD(p);
    c = P_CELL(p);
    begin_particle_cell_loop(pi,c,t)
    {
       Bc+=0.2/mag;
    }
    end_particle_cell_loop(pi,c,t)
    bforce=Bc+1.;       
    return bforce; 
}

But as I am running it it gives me the following error:

Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: #f

Can anybody help me please?

Pages: [1]