Quick Start
This section briefly describes how to get up and running using ALFE. See Installation for more detailed information such as system requirements and different ways of installing and using ALFE.
static void Main(string[] args)
{
// Create a cantilever model with 200 * 200 pixel elements
Model model2d = new Cantilever2D(ElementType.PixelElement, 200, 200).Model;
// Create a finite element system
FESystem sys0 = new FESystem(model2d, Solver.SimplicialLLT);
// Initialize the system
sys0.Initialize();
// Solve
sys0.Solve();
// Print model information
Console.Write(sys0.Model.ModelInfo());
// Print matrix inforamtin
Console.Write(sys0.MatrixInfo());
// Print solving information
Console.Write(sys0.SolvingInfo());
// Print displacement
Console.Write(sys0.DisplacementInfo());
Console.ReadKey();
}Output:
Last updated
Was this helpful?