/// <summary> /// Initializes a new instance of the <see cref="FiniteElementModel" /> class. /// </summary> /// <param name="typeOfModel">The axes in which this model is constrained and the type of analysis expected on it.</param> public FiniteElementModel(ModelType typeOfModel) { this.ModelType = typeOfModel; this.nodes = new NodeRepository(this.ModelType); this.elements = new ElementRepository(); this.forces = new ForceRepository(); this.NodeFactory = new NodeFactory(this.ModelType, this.nodes); this.ElementFactory = new ElementFactory(this.ModelType, this.elements); this.ForceFactory = new ForceFactory(this.ModelType, this.forces); }
/// <summary> /// Initializes a new instance of the <see cref="ElementFactory" /> class. /// </summary> /// <param name="elementRepository">The repository into which to add the new elements which are created by this factory.</param> internal ElementFactory(ModelType typeOfModel, ElementRepository elementRepository) { this.ModelType = typeOfModel; this.repository = elementRepository; }