November 1, 2023 at 6:41 pmll00023Subscriber
I tried to find ways to export different injections's data into one file.
Define_DPM_output seems available to do this work.
Now I have dozens of injections. how to specify the code to an injection like inj-100-single?
I only found the UDF in DPM model. where I can make the pointer in the code point to the injection I want? like tp pointing to the particles from inj-100-single.
plane here is for 2d case. Mine is 3d, so it is null.
is the output file name melting_output?
November 1, 2023 at 6:53 pm
November 1, 2023 at 6:57 pmll00023Subscriber
Previously when I encounter the malloc() error, I assume the code update all the particles in the system about 40 million. so I tried to just update a very small number, like 10 particles from certain injection.
November 1, 2023 at 7:03 pm
November 1, 2023 at 10:47 pm
November 1, 2023 at 11:45 pmll00023Subscriber
test initial section:
/* if memory for the particle variable titles has not been
* allocated yet, do it now */
if (NULLP(user_particle_vars)) Init_User_Particle_Vars();
/* now set the name and label */
strcpy(user_particle_vars.label,"Melting Index 0");
/* update the user scalar variables */
cphase_state_t *c = &(tp->cphase);
/* this is the initialization call, set:
* TP_USER_REAL(tp,0) contains the melting index, initialize to 0
* TP_USER_REAL(tp,1) contains the viscosity at the start of a time step*/
TP_USER_REAL(tp,0) = 0.;
TP_USER_REAL(tp,1) = c->mu;
/* use a trapezoidal rule to integrate the melting index */
TP_USER_REAL(tp,0) += TP_DT(tp) * .5 * (1/TP_USER_REAL(tp,1) + 1/c->mu);
/* save current fluid viscosity for start of next step */
TP_USER_REAL(tp,1) = c->mu;
switch RANS to URANS since this code is for 2D transient case. then
Then I got this error.
- 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.
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.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- Suppress Fluent to open with GUI while performing in journal file
- error: Received signal SIGSEGV
© 2023 Copyright ANSYS, Inc. All rights reserved.