How to Add a New Condition

From KratosWiki
Revision as of 13:53, 24 May 2010 by Nelson (Talk | contribs)
Jump to: navigation, search

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

  1. importing Kratos main library

from Kratos import * kernel = Kernel() #defining kernel

  1. adding of Variables to Model Part should be here

import structural_solver_static structural_solver_static.AddVariables(model_part)

Personal tools