Click or drag to resize

ModelElement Class

Base class of all elements that derive from GH objects and are part of statical models
Inheritance Hierarchy

Namespace:  Karamba.Elements
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public abstract class ModelElement : ICloneable

The ModelElement type exposes the following members.

Constructors
  NameDescription
Protected methodModelElement
construct model-element from a grass-element and use additional data provided
Top
Properties
  NameDescription
Protected propertybuilder_element
raw element from where the base data comes
Public propertycanBuckle
if true buckling is considered when doing cross section optimization or calculating the utilization
Public propertycolor
color of the element for some types of rendering. Can be set with a ElemSets-component
Public propertycolorIsSet
return true if the element has a color attached
Public propertycrosec
set/get cross section of the model element
Public propertyecce
return the elements eccentricity
Public propertyecce_glo
return vector of global cross section eccentricity
Public propertyecce_loc
return vector of local cross section eccentricity
Public propertyElem_loads
the elements loads
Public propertyfe_id
get first element index in fe-model. In case of shells there may be more than one finite element connected to a model element and fe_id points to the shells TriMesh-object.
Public propertyfe_ind_begin
get first element index in fe-model. in case of shells there may be more than one finite element connected to a model element
Public propertyfe_ind_end
get index of element in femodel that lies one entry beyond the last finite element of the model element.
Public propertyfe_node_ind
index of fe-nodes of fe-elements in fe-model. Can differ from node_ind in case of joints
Public propertyhasEccent
return true if cross section has an eccentricity
Public propertyid
return identifier (name) of element
Public propertyind
zero-based index of element in model. The indexes are consecutively numbered from 0 to number of elements.
Public propertyis_active
set/get activation state of the element. If inactive the element is removed from the statical model using the soft-kill approach. The fe-model needs to be rebuilt after manipulating this flag.
Public propertyis_visible
return true if element is visible
Public propertynII
set get normal force that induces ThII effects
Public propertynode_inds
index of nodes of elements after assembly
Public propertyx_ori
get the user defined local x-axis of the element (not including the additional rotation angle alpha)
Public propertyx_ori_given
return true if a user defined local x-axis is given
Public propertyx_ori_list
get the user defined local x-axes of the element (not including the additional rotation angle alpha)
Public propertyy_ori
get the user defined local y-axis of the element (not including the additional rotation angle alpha)
Public propertyy_ori_given
return true if a user defined local z-axis is given
Public propertyz_ori
get the user defined local z-axis of the element (not including the additional rotation angle alpha)
Public propertyz_ori_given
return true if a user defined local z-axis is given
Public propertyz_ori_list
get the user defined local z-axes of the element (not including the additional rotation angle alpha)
Top
Methods
  NameDescription
Public methodAccept(ModelElementVisitor)
accept an element visitor
Public methodAcceptT(ModelElementVisitorT, T)
accept an element visitor
Public methodAcceptR, T(ModelElementVisitorR, T, T)
accept an element visitor
Public methodadd
add an element load to the element
Protected methodaddLoads
add loads connected to this element to its feb-element
Public methodaddStrainMesh
enrich the given mesh with strain data of this element
Public methodaddStressMesh
enrich the given mesh with stress data of this element
Public methodaddTo
create feb-element and add it to the feb-model
Public methodaddUtilizationMesh
enrich the given mesh with utilization data of this element
Public methodStatic memberbuild
builds elements (Beam, Truss, spring,..) out of grass-elements and additional information.
Public methodcharacteristic_length
calculate characteristic length of the element
Public methodclearLoads
clears the loads of the element. Make sure to clone it before clearing the loads in order to avoid side effects.
Public methodClone
clone the model element
Public methodcloneBuilderElement
Clone the grass-element on which this model-element is based and linked to
Public methodclonedBuilderElement
return the cloned grass-element on which this model-element is based or null
Public methodcog
calculate the center of gravity of the element
Public methodcopyFEModelNodeIndexes
update the elements node indexes with those of the underlying finite element. This is necessary when topology of the feb-model changed
Public methoddeformationEnergy
calculates axial deformation- and bending energy stored in the element
Public methoddrawCroSecForceOutput
add lines of cross section forces diagrams to curves or meshes
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodgetElementStates
determines the states in discrete points of the element
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodis_inside
checks whether an Element lies partly inside a given Brep
Public methodlocalCoSys(Element)
create local coo-sys of undeformed element
Public methodlocalCoSys(PointState)
create local coo-sys of deformed element
Public methodmaxCroSecForceOutput
returns the resultant value of the largest cross section force output. Can e.g. be used to scale graphical output.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodmidpoint_disp
return mid-point of deformed element
Public methodminmaxEpsX
determine extreme axial strains in model for the currently visible loadcase. Add result of element if necessary.
Public methodreferencePointOnZAxis
return reference point on local z-axis for local coordinate system being situated at first element node.
Public methodresultantCroSecForces
calculates resultant normal force (N), shear force (V) and moment (M) in an element
Public methodscaledState
return scaled state at given element, location; superimpose loadcases if lc_num is smaller than 0; unscaled loadcase for lc_num % model.numLC if lc_num >= model.numLC (is used for retrieval of beam results)
Public methodset_fe_and_model_index
set the element and fe_element index
Public methodset_is_active
set activation state of element and synchronize it with fe-model. An extra fe-model-generation step is not necessary. Is therefore fast.
Public methodSetNodeInds
set the node indexes of the element
Public methodsnapElement
change the element if nodes snap together according to the given list of node indexes. returns true if the element was completely snapped
Public methodsplit_elem
The element with index ind is the seed of an element split. Make all splits in the model that are necessary so that feb-model and model are synchronized.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodtotalEccentricity
returns the eccentricity of the element in global coordinates
Public methodweight
return weight of the element in kN
Top
Fields
  NameDescription
Protected field_eloads
the elements loads
Protected field_fe_id
index of element in fe-model, in case of shells it is the index oh the trimesh
Protected field_ind
zero-based index of element in model. The indexes are consecutively numbered from 0 to number of elements.
Protected fieldfe_node_ind_
index of fe-nodes of fe-elements in fe-model. Can differ from node_ind in case of joints
Protected fieldnode_inds_
index of nodes of elements after assembly
Top
See Also