-
-
January 21, 2021 at 11:56 am
tayyubqayyum0
SubscriberJanuary 21, 2021 at 12:06 pmKarthik Remella
AdministratorHello 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
January 21, 2021 at 10:16 pmtayyubqayyum0
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 ?
January 22, 2021 at 1:18 pmKarthik Remella
AdministratorHello 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
January 24, 2021 at 6:50 pmYasserSelima
SubscriberIt doesn't require any modification to run in parallel. But are you sure of Get_Domain(12) ??
January 24, 2021 at 6:53 pmYasserSelima
SubscriberYour 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 ...
January 24, 2021 at 9:22 pmtayyubqayyum0
SubscriberThanks for help it's okay now
January 24, 2021 at 9:35 pmYasserSelima
Subscriberyou are welcome!
Viewing 7 reply threads- The topic ‘Error at Node 0: Error code: 126 Error: Error code: 126\n Error Object: #f’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
5884
-
1906
-
1420
-
1306
-
1021
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.
