Hi all:
I have a simple question. When I use Code Saturne, I use the GUI and define the fluid conductivity as variable, and I need to input the expression in the Mathematical expression editor. Can I visit the cell coordinate if I need to define the local conductivity at some special positions? Many thanks!
Best Regards!
Jundi He
Visit cell coordinate when define the physical properties
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 284
- Joined: Fri Dec 04, 2015 1:42 pm
Re: Visit cell coordinate when define the physical propertie
Hello,
If you need to define a variable thermal conductivity in the domain (k(x,y,z)), you can't do it trough the MEI because you can't access to the cells coordinates. Will be useful in a future version of CS have access to the cells coordinate, like in the initialization.
But you can use subroutine usphyv(), (check the cs_user_physical_properties.f90 in the REFERENCE directory and also in the doxygen), to access to the diffusivity (kivisl) and to the cells centers (xyzcen(i, iel)).
Regards,
Luciano
If you need to define a variable thermal conductivity in the domain (k(x,y,z)), you can't do it trough the MEI because you can't access to the cells coordinates. Will be useful in a future version of CS have access to the cells coordinate, like in the initialization.
But you can use subroutine usphyv(), (check the cs_user_physical_properties.f90 in the REFERENCE directory and also in the doxygen), to access to the diffusivity (kivisl) and to the cells centers (xyzcen(i, iel)).
Regards,
Luciano