-
-
January 21, 2021 at 11:56 am
tayyubqayyum0
SubscriberJanuary 21, 2021 at 12:06 pmKarthik R
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 R
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- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
Top Contributors-
5364
-
3363
-
2471
-
1310
-
1018
Top Rated Tags© 2023 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.
-