Generation of boundary conditions based on springs

class model.boundary_cond.spring_bound_cond.ElasticFoundation(wModulus, cRoz)

Bases: object

Region resting on springs (Winkler elastic foundation)

Variables:
  • wModulus – Winkler modulus of the foundation (springs in Z direction)
  • cRoz – fraction of the Winkler modulus to apply for friction in the contact plane (springs in X, Y directions)
calcPressures()

Foundation pressures over the soil. Calculates pressures and forces in the free nodes of the springs (those that belongs to both the spring and the foundation) and stores these values as properties of those nodes: property ‘soilPressure:’ [xStress,yStress,zStress] property ‘soilReaction:’ [xForce,yForce,zForce]

createMaterials(preprocessor, name)
displayPressures(defDisplay, caption, fUnitConv, unitDescription, rgMinMax=None)

Display foundation pressures. :param rgMinMax: range (vmin,vmax) with the maximum and minimum values

of the scalar field (if any) to be represented. All the values less than vmin are displayed in blue and those greater than vmax in red (defaults to None)
generateSprings(xcSet)

Creates the springs at the nodes.

getCentroid()

Returns the geometric baricenter of the springs.

class model.boundary_cond.spring_bound_cond.SpringBC(name, modelSpace, Kx=0, Ky=0, Kz=0)

Bases: object

Spring to be used as boundary condition

Variables:
  • name – name
  • modelSpace – model space
  • Kx – spring stiffness in X direction (defaults to 0 -> free)
  • Ky – spring stiffness in Y direction (defaults to 0 -> free)
  • Kz – spring stiffness in Z direction (defaults to 0 -> free)
applyOnNodesIn3Dpos(lst3DPos)

create springs in the nearest nodes to the coordinates in the list of 3D positions given as parameter

applyOnNodesInSet(setEnt)

create springs in all the nodes included in the set of entities given as parameter

applyOnNodesLst(Nodelist)

create spring boundary conditions in the nodes included in the list of nodes passed as parameter.

applyOnPointsInSet(setEnt)

create springs in all the points included in the set of entities given as parameter

createSpringMaterials()

create the spring materials in X, Y, Z directions. If there is no spring in any of these directions, its corresponding material is equal to None

OpenSees style

model.boundary_cond.opensees_style.fix(constraints, idNode, gdls)