C# Class SharpFE.ForceFactory

Factory which creates new forces. The forces can also be registered in a repository.
Mostra file Open project: iainsproat/SharpFE Class Usage Examples

Public Methods

Method Description
Create ( double valueOfXComponent ) : ForceVector

Creates a new force for a 1D ModelType

Create ( double valueOfXComponent, double valueOfYComponent ) : ForceVector

Creates a new force for a 2D ModelType

Create ( double valueOfXComponent, double valueOfYComponent, double valueOfZComponent, double valueOfXXComponent, double valueOfYYComponent, double valueOfZZComponent ) : ForceVector

Creates a new force for a 2D ModelType

CreateFor1DBeam ( double valueOfZComponent, double valueOfMomentAboutYY ) : ForceVector

CreateForTruss ( double valueOfXComponent, double valueOfZComponent ) : ForceVector

Creates a new force for a 2D ModelType

Private Methods

Method Description
ForceFactory ( ModelType typeOfModel ) : System

Initializes a new instance of the ForceFactory class.

ForceFactory ( ModelType typeOfModel, ForceRepository forceRepository ) : System

Initializes a new instance of the ForceFactory class.

Method Details

Create() public method

Creates a new force for a 1D ModelType
public Create ( double valueOfXComponent ) : ForceVector
valueOfXComponent double The component of the force along the global x-axis
return ForceVector

Create() public method

Creates a new force for a 2D ModelType
public Create ( double valueOfXComponent, double valueOfYComponent ) : ForceVector
valueOfXComponent double The component of the force along the global x-axis
valueOfYComponent double The component of the force along the global y-axis
return ForceVector

Create() public method

Creates a new force for a 2D ModelType
public Create ( double valueOfXComponent, double valueOfYComponent, double valueOfZComponent, double valueOfXXComponent, double valueOfYYComponent, double valueOfZZComponent ) : ForceVector
valueOfXComponent double The component of the force along the global x-axis
valueOfYComponent double The component of the force along the global y-axis
valueOfZComponent double The component of the force along the global z-axis
valueOfXXComponent double
valueOfYYComponent double
valueOfZZComponent double
return ForceVector

CreateFor1DBeam() public method

public CreateFor1DBeam ( double valueOfZComponent, double valueOfMomentAboutYY ) : ForceVector
valueOfZComponent double
valueOfMomentAboutYY double
return ForceVector

CreateForTruss() public method

Creates a new force for a 2D ModelType
public CreateForTruss ( double valueOfXComponent, double valueOfZComponent ) : ForceVector
valueOfXComponent double The component of the force along the global x-axis
valueOfZComponent double The component of the force along the global z-axis
return ForceVector