Error: Segmentation Fault - Fluent
1 Attachment(s)
Hello!!
I'm trying to simulate Natural Convection inside a refrigerator. I have a polynomial to enviromental temperature and I've made a UDF to calculate the temperature inside the refrigerator and to calculate the "h" coefficient for convection using the correlation of Churchill y Chu. Fluent interprets the UDF correctly, but when I'm going to initialize the solution a message appears. :confused::confused::confused::confused: Could anyone help me, please? This is the code of de UDF. Code:
DEFINE_PROFILE(h_constant, thread, position) |
This segmentation error occurs when you're trying to access a variable which isn't available. You'll need to identify the line of code which is causing this error. First, try replacing C_T(c,t_c) with 1. to check if the cell temperature is available across all cells. If the segmentation error disappears, then it's possible the cell temperature isn't available on the first time step for the DEFINE_PROFILE macro (apply a conditional statement in this case).
Note: if you're running this macro with the parallel solver then these looping macros only access the cells within the compute node's partition. Therefore, the average temperature calculated would not cover the entire domain. See the UDF manual for examples on communicating between compute nodes (message passing). |
Thanks
Quote:
I've changed the value that you suggues me, but I have the same error yet. I've change the value in F_PROFILE, to, but it's the same error. Could you suggues me another thing to change? Thanks `e` |
Quote:
|
Braulio,
I am having the same error. Apparently this line is creating the problem: thread_loop_c (t,domain) Did you find a solution to your problem? Quote:
|
All times are GMT -4. The time now is 12:15. |