fedoo.constitutivelaw.Simcoon.get_temp_gp

Simcoon.get_temp_gp(assembly, pb)

Get the current temperature field at Gauss Point.

An explicitly set ‘Temp’ field in the assembly.sv dict takes precedence: it is used as is (it is already defined at Gauss Points). This is the historical way to impose a temperature (e.g. a constant field, or a weak thermo-mechanical coupling that copies the thermal solution into sv). Otherwise, if ‘Temp’ is a variable of the ModelingSpace, the nodal dof solution is extracted from the problem and converted to Gauss Points. If no temperature is found or if it is set to 0, return None.