How to Add a New Condition
On several occasions we wonder how add to our model a series of conditions such as distributed loads, Point Loads, among other things.
In this section, we'll focus more on structural aplications. For exemple, in this case we are going to put a conditios of Puntual Load. In our python file we need to add from the model part the variables or conditios that we are going to use: in this case we add FORCE or DISPLACEMENT in the main python file:
#adding Nodal Variables model_part.AddNodalSolutionStepVariable(FORCE); model_part.AddNodalSolutionStepVariable(DISPLACEMENT);
- importing Kratos main library
from Kratos import * kernel = Kernel() #defining kernel
- adding of Variables to Model Part should be here
import structural_solver_static structural_solver_static.AddVariables(model_part)