Page 1 of 1
user variable at boudary
Posted: Fri Nov 10, 2017 12:00 pm
by bachlinh
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,
Re: user variable at boudary
Posted: Fri Nov 10, 2017 6:11 pm
by Yvan Fournier
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
Re: user variable at boudary
Posted: Sat Nov 11, 2017 7:44 am
by bachlinh
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