Init transient thermal calculation with a temperature distribution (Scalarfield)
Hello everyone,
I would like to simulate a transient thermal cooling process. In a previous step, I calculated the steady-state temperature distribution of the hot workpiece and would now like to use this as the Init for the transient calculation. I have saved the steady-state temperature distribution as a .pos
file. I would now like to load this with GmshRead as Init for the transient calculation. The geometry of my .geo file is identical for the steady-state and transient calculation.
Resolution:
If(Flag_AnalysisType == 1) // transient general
If( Flag_TFromFile == 1)
GmshRead[ "Ta.pos", 1];
EndIf
InitSolution[T] ;
SaveSolution[T] ;
TimeLoopTheta [t0, t1, dt, 1.0] {
Generate[T] ; Solve[T];
Test[SaveFct[]] {
SaveSolution[T];
}
}
Constraint:
Constraint {
{ Name Temperature ;
Case {
If(Flag_AnalysisType == 0)
{ Region Fix_Temp ; Type Assign; Value 1500 ; }
EndIf
If(Flag_AnalysisType == 1)
{ Region Tot_The ; Type Init; Value ScalarField[XYZ[]]{1}; }
EndIf
}
}
}
I receive the following error. I have already searched the forum, but nothing has helped so far.
Error: No views available to interpolate from
Is this the wrong way to load the temperature distribution from Ta.pos
?
Is there another or easier way to load the temperature distribution?
Thanks in advance. Greetings
Jan