Hello guys,
I defined a new scalar in code saturne. Can anyone show me how to get its value at boundary after each iteration ?
I found only these values at cells by : cs_field_by_name .
Thank you,
user variable at boudary
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4093
- Joined: Mon Feb 20, 2012 3:25 pm
Re: user variable at boudary
Hello,
Is your added scalar a solved variable (I suppose so) ? In this case, in cs_user_parameters.c, you need to call cs_parameters_add_boundary_values. Check the example of cs_user_parameters.c for this.
Regards,
Yvan
Is your added scalar a solved variable (I suppose so) ? In this case, in cs_user_parameters.c, you need to call cs_parameters_add_boundary_values. Check the example of cs_user_parameters.c for this.
Regards,
Yvan
Re: user variable at boudary
Thank you for your answer,
I found in the cs_user_parameters.c the function you said.
I added a scalar solved variable by using GUI.
And I also want to know which function or expression (like cs_field_by_name) to access its values at boundary (by its name or its id) for my calculations ?
I'm newbie in code saturne so i'm sorry for many question.
Regards,
Bach Linh
I found in the cs_user_parameters.c the function you said.
I added a scalar solved variable by using GUI.
And I also want to know which function or expression (like cs_field_by_name) to access its values at boundary (by its name or its id) for my calculations ?
I'm newbie in code saturne so i'm sorry for many question.
Regards,
Bach Linh