Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

Error at Node 0: Error code: 126 Error: Error code: 126\n Error Object: #f

    • tayyubqayyum0
      Subscriber
    • Karthik R
      Administrator
      Hello When you launch Fluent, try running it with 0 processors to launch Fluent with a -t0 flag. Please note that this does not work for the recent versions of Fluent there is no serial -t0 launch available. If you are running into this issue, I'd recommend that you work on parallelizing your UDF.
      Thanks.
      Karthik
    • tayyubqayyum0
      Subscriber
      #include"C:\ProgramFiles\ANSYSInc\v191\fluent\fluent19.1.0\src\udf\udf.h"
      #include"C:\ProgramFiles\ANSYSInc\v191\fluent\fluent19.1.0\src\mesh\dynamesh_tools.h"
      #include"C:\ProgramFiles\ANSYSInc\v191\fluent\fluent19.1.0\src\pbns\unsteady.h"

      staticrealv_prev;/*velocityinprevioustimestep*/

      DEFINE_SDOF_PROPERTIES(stage,prop,dt,time,dtime)
      {
      Thread*t;
      Domain*d=Get_Domain(12);

      realcg_y;/*centreofgravitypositiony*/
      realcg_x;/*centreofgravitypositionx*/
      realvel_y;/*cylindervelocityy*/
      realvel_x;/*cylindervelocityx*/
      realFy;/*Liftforce*/
      realFx;/*Dragforce*/

      realmr=10;/*cylindermassratio*/
      realrho=998.2;/*FluidDensity*/
      realfn=4.1302676;/*systemfrequency*/
      realdia=0.002;/*cylinderdiameter*/
      realz=0;/*Dampingcoefficient*/
      realcm=1;/*addedmasscoefficient*/

      realmass=(mr*rho*dia*dia*M_PI)/4;/*Cylindermass*/
      realwn=2*M_PI*fn;/*systemangularvelocity*/
      realky=mass*wn*wn;/*Systemstiffnessy*/
      realkx=mass*wn*wn;/*Systemstiffnessx*/
      realcy=2*mass*wn*z;/*Systemdampingy*/
      realcx=2*mass*wn*z;/*Systemdamping*/

      /*getthethreadpointerforwhichthismotionisdefined*/
      t=DT_THREAD(dt);

      prop[SDOF_MASS]=mass;/*systemmassofthe6dof*/
      prop[SDOF_IXX]=(mass*dia*dia)/16;
      prop[SDOF_IYY]=(mass*dia*dia)/16;
      prop[SDOF_IZZ]=(mass*dia*dia)/8;

      /*limit4dofsfrom6dofmacro*/
      prop[SDOF_ZERO_TRANS_X]=FALSE;
      prop[SDOF_ZERO_TRANS_Y]=FALSE;
      prop[SDOF_ZERO_TRANS_Z]=TRUE;
      prop[SDOF_ZERO_ROT_X]=TRUE;
      prop[SDOF_ZERO_ROT_Y]=TRUE;
      prop[SDOF_ZERO_ROT_Z]=TRUE;

      cg_y=DT_CG(dt)[1];
      cg_x=DT_CG(dt)[0];
      vel_y=DT_VEL_CG(dt)[1];
      vel_x=DT_VEL_CG(dt)[0];
      Fy=-ky*cg_y-vel_y*cy;
      Fx=-kx*cg_x-vel_x*cx;

      prop[SDOF_LOAD_F_Y]=Fy;
      prop[SDOF_LOAD_F_X]=Fx;
      }
      can anyone change this for parallel processes ?
    • Karthik R
      Administrator
      Hello Sorry, we will not be able to help you with writing/scripting the UDF in parallel. Please go through the following documentation to parallelize this UDF. Here is the link from our Fluent Customization manual.
      Having said that, if you have any questions related to a macro, we can certainly help here.
      Thank you.
      Karthik
    • YasserSelima
      Subscriber
      It doesn't require any modification to run in parallel. But are you sure of Get_Domain(12) ??
    • YasserSelima
      Subscriber
      Your problem is not in parallelizing the UDF. it is something in the setting. "nmake" is not recognized .. the file is not compiled, neither for serial or parallel ...
    • tayyubqayyum0
      Subscriber
      Thanks for help it's okay now
    • YasserSelima
      Subscriber
      you are welcome!
Viewing 7 reply threads
  • You must be logged in to reply to this topic.