Hi,
I have a question about Syrthes, but since there is no Syrthes forum, I can only ask here. In the user condition subroutine, I need to define the thermal conductivity of the solid by temperature of the element:
for (i=0;i<physol.kiso.nelem;i++)
{
ng=physol.kiso.ele /* Global number of the element */
nr=maillnodes.nrefe[ng] /* Reference number of the element */
/* data_element_moy(ng,maillnodes,t,&nrefe,&x,&y,&z,&tmoy);*/ /* Average values on element */
physol.kiso.k=
}
In the subroutine which defines the physical properties, ng is the global ID number of the element, and how should I get the temperature of the element? Which function should I use? In the comment of the subroutine, it says that the average value of the element can be obtained. Thanks.
Best Regards!
Jundi He
Temperature dependence thermal conductivity in Syrthes
Re: Temperature dependence thermal conductivity in Syrthes
Hi,
In this loop, the average temperature in the cell would be in the variable tmoy if you uncomment the line that get the the reference of the groups to which the cell belongs, its position and the temperature of the given cell at the given time and store them in the variable given (here &nrefe,&x,&y,&z,&tmoy)
Regards,
Jonas
In this loop, the average temperature in the cell would be in the variable tmoy if you uncomment the line
Code: Select all
data_element_moy(ng,maillnodes,t,&nrefe,&x,&y,&z,&tmoy);
Regards,
Jonas