Click or drag to resize

CroSec Class

Base class of all cross-sections.
Inheritance Hierarchy

Namespace:  Karamba.CrossSections
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntax
[SerializableAttribute]
public abstract class CroSec : CommonObject, 
	ICloneable, ISerializable

The CroSec type exposes the following members.

Constructors
  NameDescription
Protected methodCroSec
Initializes a new instance of the CroSec class. create a default cross section.
Protected methodCroSec(SerializationInfo, StreamingContext)
Initializes a new instance of the CroSec class. Deserialize CroSec.
Protected methodCroSec(String, String, String, NullableColor)
Initializes a new instance of the CroSec class. create a cross section with given name, family and country without default properties.
Top
Properties
  NameDescription
Public propertycolor
Gets or sets user defined color of the cross section.
Public propertydims
Gets or sets cross section dimensions.
Public propertyecce_loc
Gets or sets local eccentricity of cross section.
Public propertyelemIds
Gets or sets the list of element identifiers to which the cross section is to be attached.
Public propertyexteriorPerimeter
Gets outer and inner (where applicable) perimeter associated with the cross section.
Public propertyfamily
Gets or sets the family of the cross section.
Public propertyfamilyID
Gets unique identifier of cross section. Excluded country in order to avoid problems in case of user defined families which consist of cross sections of different countries.
Public propertyguid
Gets gUID of the cross section.
Public propertyhasEccent
Gets a value indicating whether the cross section has a locally defined eccentricity.
Public propertyIsValid
Gets a value indicating whether the cross section is valid (has e.g. non-zero area).
Public propertymaterial
Gets material of the element.
Public propertymaterialName
Gets name of the basic material attached to the cross section.
Public propertyname
Gets or sets the name of the cross section.
Public propertynDims
Gets number of dimensional.
Protected propertynProps
Gets return the number of properties of the cross section.
Public propertyprops
Gets or sets default cross section properties.
Public propertyuser_defined
Gets a value indicating whether indicates whether a cross section is user-defined or generated (e.g. a default material).
Public propertyUserData
Gets access to the user-data dictionary.
(Inherited from CommonObject.)
Public propertyzm
Gets distance of center of shear from upper section boundary.
Public propertyzs
Gets distance of center of gravity from upper section boundary.
Top
Methods
  NameDescription
Public methodaccept
Accepts a cross section visitor.
Public methodaddDuplicate
add this cross section to fe-model.
Public methodAddElemId
add an element identifier to the list of element identifiers which define to which elements the cross SectionForce shall be attached in the course of assemblage.
Public methodcalculateProperties
calculate cross-section properties from given geometry.
Public methodclearElemIds
Empties the list of identifiers to which the cross section shall be attached.
Public methodClone
shallow clone the cross section.
Public methodcloneElemIds
clone the list of identifiers to which the cross section is to be attached. Needs to be done before it is changed in order to avoid side-effects in GH-definitions.
Public methodcrossSectionHasNoResistance
test whether cross section has zero resisting moment or area for cross section design.
Protected methoddefaultGuid
Get the cross sections default guid.
Public methodenlistAllMaterials
set the material based on the material identifier and a mapping from material identifiers to indexes.
Protected methodStatic memberenlistMaterial
Return a material based on its reference or name. Add it to the list of materials if not already present.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodfe_ind
return cross section index of sub cross section in the finite element model.
Public methodFECroSecDefault
Create fe-cross-sections from default cross section.
Public methodFECroSecs(Model, Model)
Create list of fe-cross-sections with default family-index 0.
Public methodFECroSecs(Model, Model, Int32)
Create FE-cross-sections.
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodgetHeight
return the height of the cross section. Is useful for shell-elements which can thus also use beam-cross sections.
Public methodgetHeight(Int32)
Get the height of a sub-cross section in case of composite cross sections.
Protected methodGetObjectData
Serialize CroSec.
(Overrides CommonObjectGetObjectData(SerializationInfo, StreamingContext).)
Public methodgetThickness
get thickness of cross section.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasUserData
true if the object has user-data attached.
(Inherited from CommonObject.)
Public methodheights
constructs a list of heights associated with the cross section. Can be time-consuming. For single item access use getHeight(index).
Public methodisDefault
returns true if cross section has default properties.
Public methodmatchId
test whether the cross section matches one of the identifiers given in the list of indexes.
Public methodmatchIds
test whether the cross section matches one of the identifiers given in the list of indexes.
Public methodmaxWidth
return the maximum width of the cross section or -1 in case this does not make sense (for e.g. shell cross sections).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodminmaxEps
determine extreme strains in cross-section.
Public methodmodifyEcceZ
modify the local eccentricity in Z-direction.
Public methodmodifyHeight
modify the height of the cross section.
Public methodmodifyHeights
modify the heights of the cross section.
Public methodmodifyThickness
Modifies the thickness of a cross section.
Public methodread
Read cross section data from reader.
Public methodreadFromTableRow
Reads cross section data from given table row.
Public methodrenewGuid
create new GUID for the cross section.
Public methodrenewGuid(Guid)
set new GUID for the cross section.
Protected methodsetDefaults
Set default dimensions of cross section.
Public methodsetMaterial(FemMaterial)
set the material identifier and the material reference of the cross section.
Public methodsetMaterial(ListFemMaterial)
Sets the material identifiers and the material references of the cross section. Sets material of layer 0 in case of shells.
Public methodshape
Get the shape indicator of a cross section (for e.g. reading data from a table). This can be e.g. 'O', 'I', 'T', '[]',...
Public methodsketch
add vertices on cross-section to mesh and corresponding colors origin is the point on the element axis, axis the local coordinate system, cmap contains the information for coloring points and n_faces the number of points to be calculated.
Public methodsketchFlipFaceNormals
return a list of bool values which indicate whether the face normals of a group should be flipped.
Public methodsketchGroupSizes
Return list of group-sizes of faces that form one geometric entity. Enables cross-section sketches to consist of more than one connected surface. By default there is only one group.
Public methodstiffness
calculate characteristic axial- and bending stiffness of an element of length L.
Public methodToString
Render cross section data as string for output.
(Overrides CommonObjectToString.)
Public methodtrait
return value of trait with given index.
Public methodwrite
Writes cross section data contained to a reader.
Public methodwriteToTableRow
generate value of property info as a string which can be used in a cross section table.
Top
Fields
  NameDescription
Public fieldcountry_
country in which the cross section is in use.
Protected fieldeccent_
eccentricity of the cross section.
Protected fieldelem_ids_
id/regular expressions of element identifiers to which the cross section applies.
Protected fieldfamily_
unique identifier of a group of cross sections within a country.
Protected fieldfe_ind_
identification number of cross section in the fe-model.
Protected fieldguid_
GUID of the cross section.
Protected fieldhas_eccent_
true if there is an eccentricity defined for the cross section.
Protected fieldname_
unique identifier of a cross section within a family.
Protected fielduser_defined_
indicates whether a cross section is user-defined or generated (e.g. a default material).
Top
See Also