Click or drag to resize

FactoryModelAssembleModel Method

Assemble a model out of its components

Namespace:  KarambaCommon.Factories
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public virtual Model AssembleModel(
	IReadOnlyList<BuilderElement> elems,
	IReadOnlyList<Support> supports,
	List<Load> loads,
	out string info,
	out double mass,
	out Point3 cog,
	out string msg,
	out bool runtimeWarning,
	IReadOnlyList<Joint> joints = null,
	IReadOnlyList<Point3> points = null,
	IReadOnlyList<ElemSet> beamsets = null,
	double limitDist = 0.005,
	IReadOnlyList<CroSec> crosecs = null,
	IReadOnlyList<FemMaterial> materials = null
)

Parameters

elems
Type: System.Collections.GenericIReadOnlyListBuilderElement
Builders of elements to be added
supports
Type: System.Collections.GenericIReadOnlyListSupport
Supports to be added
loads
Type: System.Collections.GenericListLoad
Loads to be added
info
Type: SystemString
Information regarding the assembly-process
mass
Type: SystemDouble
Mass of the assembled model in kg
cog
Type: Karamba.GeometryPoint3
Center of gravity of the assembled model
msg
Type: SystemString
Error messages of warnings regarding the assembly process
runtimeWarning
Type: SystemBoolean
'true' if there is a warning.
joints (Optional)
Type: System.Collections.GenericIReadOnlyListJoint
'Joint definitions for the model.
points (Optional)
Type: System.Collections.GenericIReadOnlyListPoint3
Input nodes of the model that may be connected by elements. May contain duplicate points. The elimination of duplicate nodes closer than 'limitDist' does not apply to them. In case of duplicate points, elements are attached to them alternating: first element to first duplicate point, second element to second duplicate point, third element to first duplicate point in case there are only two points in one position. The same mechanism applies to point-loads and supports."
beamsets (Optional)
Type: System.Collections.GenericIReadOnlyListElemSet
Input sets of beams
limitDist (Optional)
Type: SystemDouble
Limit distance for coincident points. The default is 0.005 meter
crosecs (Optional)
Type: System.Collections.GenericIReadOnlyListCroSec
List of cross section agents
materials (Optional)
Type: System.Collections.GenericIReadOnlyListFemMaterial
List of material agents

Return Value

Type: Model
The assembled model
See Also