TAGGED: profiles, temperature, udf-fluent
-
-
November 20, 2021 at 9:35 pm
sinasalahshour74
SubscriberHello,
In DEFINE_PROFILE , I want to call temperature of cell but when i run the file error "Node 0: Process 1404 : Received signal SIGSEGV" comes up .I'm sure problem because of C_T(c,t) .How can i call temperature in DEFINE_PROFILE?
here's my udf:
DEFINE_PROFILE(temperature_profile,t,i)
{
 cell_t c;
 float temparc;
 float timeflow = CURRENT_TIME;
 begin_c_loop(c,t)
  {
    if (timeflow>=0.021 || timeflow<=0.0346){
    temparc=C_T(c,t);
    F_PROFILE(c,t,i) =temparc;
    } Â
    else
    F_PROFILE(c,t,i) =600;
  }
 end_c_loop(c,t)
}
Best Regards,
November 22, 2021 at 9:31 amRob
Forum ModeratorYou're setting the temperature to be the temperature so that may throw the solver. Re-pose the IF statements to only change the temperature when you need to and not do anything otherwise.
November 22, 2021 at 12:11 pmAmine Ben Hadj Ali
Ansys EmployeeUDF is wrong and does not make a sense: you want to set the profile to be equal to the cell temperature . Moreover it is wrong using F_PROFILE for cells.
Viewing 2 reply threads- The topic ‘call temperature in Profile UDF’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
2878
-
970
-
852
-
599
-
591
Top Rated Tags© 2025 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.
-