-
-
December 7, 2022 at 5:40 pm
Diogo Martinho
SubscriberDear all,
I've been trying to change a parameter, and I was trying to find the error. So, I was trying to check how these two lines would work (one is commented out)/* real x[ND_ND]; */
real NV_VEC(x);But I dont know why, x[0] = 0 and I thought it would be somehow changing along the x-direction. In order those three conditions would be met. It seems only the first one runs.
DEFINE_ADJUST(my_adjust, d)
{
Thread* t;
cell_t c;
/* real x[ND_ND]; */
real NV_VEC(x);
thread_loop_c(t, d)
{
begin_c_loop(c, t)if (x[0] <= 0.003 && x[0] >= -0.008) {
/*previously -> val = 0.5;*/
C_UDMI(c,t,0) = x[0];}
else if (x[0] <= 0.008 && x[0] > 0.003) {
/* val = 222 * x[0] + 0.333;*/
C_UDMI(c, t, 0) = 1.2;
}
else {
C_UDMI(c, t, 0) = 1.5;
}
end_c_loop(c, t)
}}
-
December 8, 2022 at 7:39 am
DrAmine
Ansys EmployeeYour vector "x" (please user better other naming) is not defined at all: it is just defined as vector but not "filled" with any particular values.
-
- You must be logged in to reply to this topic.

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
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2610
-
2088
-
1321
-
1108
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.