How to find which process is active in a calculation? #11410
Replies: 3 comments 1 reply
-
Update: This comes from "geomechanics_solver.py" where all variables are defined in "def AddVariables(self):"
The same occurs also for the pressure solver as the temperature can't be found. Any hint? Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi @mnabideltares , whenever you have nodes that belong to different solvers, they should have the variables needed for each one. In case you coupling two solvers, you must make sure that the shared nodes initialize all the required variables |
Beta Was this translation helpful? Give feedback.
-
It is done by adding a keyword in the json file. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to couple heat (temperature) with water-pressure using COSIM. The water-pressure affects the temperature distribution by means of water discharge (convection). The temperature affects the water-pressure by means of water density and viscosity.
So, when I solve the pressure, I need to understand whether the heat is active or not. So, I added a condition to the pressure element:
However, I found this condition is always True even if I don't involve the heat in the calculation. It leads to recalculating the density and viscosity based on temperature=0. The same problem is also at the side of heat element.
For problems with Temperature alone, without pressure, the condition "SolutionStepsDataHas(WATER_PRESSURE)" still gives True.
After debugging, I came to conclusion that, this condition gives True for all registered variables in Kratos, regardless they are involved or not. For example, "SolutionStepsDataHas(ROTATION)" is still true, while we haven't involved any rotation.
Is this function is intended to give True for all registered variables?
If well, is there any fuction to tell us whether there is solution of a specific variable or not?
NB: In COSIM, we solve the elements seperately, so for Pressure element, there is no DOF for temperature, hence HasDOF is not applicable. While we have temperature values on the nodes, which is exchanged by COSIM.
Thank you in advance for your help.
Regards
Beta Was this translation helpful? Give feedback.
All reactions