-
-
January 21, 2021 at 11:56 am
tayyubqayyum0
Subscriberin version 19.1, if you select serial, it means a host node plus a single working node...which essentially makes it parallel computing...to run a true serial case in 19.1, you need to select parallel processing with 'zero' number nodes... so how can I select parallel processing with zero ni get this error when I load UFD n
-
January 21, 2021 at 12:06 pm
Karthik R
AdministratorHello,nWhen 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.nThanks.nKarthikn -
January 21, 2021 at 10:16 pm
tayyubqayyum0
Subscriber#include C:\Program Files\ANSYS Inc\v191\fluent\fluent19.1.0\src\udf\udf.hn#include C:\Program Files\ANSYS Inc\v191\fluent\fluent19.1.0\src\mesh\dynamesh_tools.hn#include C:\Program Files\ANSYS Inc\v191\fluent\fluent19.1.0\src\pbns\unsteady.hnnstatic real v_prev; /*velocity in previous time step*/nnDEFINE_SDOF_PROPERTIES(stage, prop, dt, time, dtime)n{n Thread *t;n Domain *d = Get_Domain(12);n n real cg_y; /*centre of gravity position y*/n real cg_x; /*centre of gravity position x*/n real vel_y; /*cylinder velocity y*/n real vel_x; /*cylinder velocity x*/n real Fy; /*Lift force*/n real Fx; /*Drag force*/nn real mr = 10; /*cylinder mass ratio*/n real rho = 998.2; /*Fluid Density*/n real fn = 4.1302676; /*system frequency*/n real dia = 0.002; /*cylinder diameter*/n real z = 0; /*Damping coefficient*/n real cm = 1; /*added mass coefficient*/nn real mass = (mr*rho*dia*dia*M_PI)/4; /*Cylinder mass*/n real wn = 2*M_PI*fn; /*system angular velocity*/n real ky = mass*wn*wn; /*System stiffness y*/n real kx = mass*wn*wn; /*System stiffness x*/n real cy = 2*mass*wn*z; /*System damping y*/n real cx = 2*mass*wn*z; /*System damping*/nn /*get the thread pointer for which this motion is defined*/n t = DT_THREAD(dt);nn prop[SDOF_MASS] = mass; /*system mass of the 6 dof*/n prop[SDOF_IXX] = (mass*dia*dia)/16;n prop[SDOF_IYY] = (mass*dia*dia)/16;n prop[SDOF_IZZ] = (mass*dia*dia)/8;nn /*limit 4 dofs from 6 dof macro*/n prop[SDOF_ZERO_TRANS_X] = FALSE;n prop[SDOF_ZERO_TRANS_Y] = FALSE;n prop[SDOF_ZERO_TRANS_Z] = TRUE;n prop[SDOF_ZERO_ROT_X] = TRUE;n prop[SDOF_ZERO_ROT_Y] = TRUE;n prop[SDOF_ZERO_ROT_Z] = TRUE;nn cg_y = DT_CG(dt)[1];n cg_x = DT_CG(dt)[0];n vel_y = DT_VEL_CG(dt)[1];n vel_x = DT_VEL_CG(dt)[0];n Fy = -ky*cg_y - vel_y*cy;n Fx = -kx*cg_x - vel_x*cx;nn prop[SDOF_LOAD_F_Y] = Fy;n prop[SDOF_LOAD_F_X] = Fx;n} ncan anyone change this for parallel processes ?n -
January 22, 2021 at 1:18 pm
Karthik R
AdministratorHello,nSorry, 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.nHaving said that, if you have any questions related to a macro, we can certainly help here.nThank you.nKarthikn -
January 24, 2021 at 6:50 pm
YasserSelima
SubscribernIt doesn't require any modification to run in parallel. But are you sure of Get_Domain(12) ??n -
January 24, 2021 at 6:53 pm
YasserSelima
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 ... n -
January 24, 2021 at 9:22 pm
tayyubqayyum0
SubscriberThanks for help it's okay now n -
January 24, 2021 at 9:35 pm
YasserSelima
Subscriberyou are welcome!n
-
- You must be logged in to reply to this topic.

Boost 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.
- 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
-
5364
-
3363
-
2471
-
1310
-
1018
© 2023 Copyright ANSYS, Inc. All rights reserved.