Let say the above .sif file will able to calculate the three different temperatures but using the same Heat Equation (because I have define three different Variable Temperature), how can I add all these three temperatures to allow elastic solver to use it and compute the heat expansion?
The idea of using different variable name came from your answer in previous post below:
You could do three different solvers, for TempA, TempB and TempC. Then in the thrird one you could have an "Exported Variable 1" called "Temperature" such that would be the sum of the three. Then no changes is needed in the elasticity solver.
One more question. Regarding the exported variables and summing the temperatures, I am not very sure how to do it, although I got your idea. How can I add the temperatures and then represent it as exported variable? Do I need to use MATC or to write a user define function?
I just not really understand how elastic solver will read the variable temperature. I presume that, when using only heat equation and elastic solvers, the elastic solver will automatically read the variable temperature defined in the heat equation solver. However, if I am going to use three modified heat equation solvers, how the elastic solver knows which variable from which solver it needs to compute the heat expansion? Please clarify for me, cause I am quite confuse.
Solver 1
Name = "SolverA"
Variable = TempA
...
Solver 2
Name = "SolverB"
Variable = TempB
...
Solver 3
Name = "SolverC"
Variable = TempC
...
! create an additional variable
Exported Variable 1 = Temperature
Update Exported Variables = Logical True
End
Solver 4
Name = "StressSolver"
...
End
! sum up, this is activiated with "update exported variables"
Body Force 1
Temperature = Variable TempA, TempB, TempC
Real MATC "tx(0)+tx(1)+tx(2)"
End