-
-
June 20, 2022 at 3:34 pm
m.shafiee1374
SubscriberHello,
I'm using the define_adjust macro below to read velocity at the first iteration of each time step (Fluent 19.5 in serial mode):
DEFINE_ADJUST(name,domain)
{
 if (first_iteration)
 {
  /*loop over cells, find the cell and read its velocity here*/
  Message("\nVelocity = %f \n", V) ;
 }
}Â
But the result for the first iteration looks like this:
iter  continuity  x-vel   etc.
Velocity = 0.0000Â
Velocity = 6.0000Â Â Â Â Â Â Â /*this is the value that i'm looking for*/
1Â Â residual values.....
Â
Looks like the macro is running twice for the first iteraton? But why? :/
-
June 21, 2022 at 9:16 am
Amine Ben Hadj Ali
Ansys EmployeeCan you addÂ
Â
Message("\nVelocity = %f \n on this node %d", V , myid) ;
-
June 23, 2022 at 5:10 pm
m.shafiee1374
Subscriberupdate:
I fixed this issue by editing parts of my code, I didnt figure out what the problem was though.
But thanks for your quick response.
-
- The topic ‘How does define_adjust macro work exactly during iteration??’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
4017
-
1461
-
1287
-
1135
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.