SS.Discretization 1.2.0
Quadrature, basis, degree-of-freedom, composable constraint, assembly, sparse-conversion, and error-estimation contracts
Language compatibility: >=1.0.0 <2.0.0
Runtime compatibility: >=1.0.0 <2.0.0
Dependencies: SS.LinearAlgebra >=1.2.0 <2.0.0
Public API
Discretization.applyDirichlet
export function applyDirichlet(LinearSystem system, DirichletConstraints prescribed) -> LinearSystemParameters: system: LinearSystem, prescribed: DirichletConstraints
Discretization.assembleCsr
export function assembleCsr(int dofCount, int[][] elementDofs, double[][] elementMatrices, double zeroTolerance) -> CsrMatrixParameters: dofCount: int, elementDofs: int[][], elementMatrices: double[][], zeroTolerance: double
Discretization.assembleDense
export function assembleDense(int dofCount, int[][] elementDofs, double[][] elementMatrices, double[][] elementVectors) -> LinearSystemParameters: dofCount: int, elementDofs: int[][], elementMatrices: double[][], elementVectors: double[][]
export function assembleSparseWithBoundary(int dofCount, int[][] elementDofs, double[][] elementMatrices, double[][] elementVectors, int[][] boundaryDofs, double[][] boundaryMatrices, double[][] boundaryVectors, DirichletConstraints prescribed, double zeroTolerance) -> SparseLinearSystemParameters: dofCount: int, elementDofs: int[][], elementMatrices: double[][], elementVectors: double[][], boundaryDofs: int[][], boundaryMatrices: double[][], boundaryVectors: double[][], prescribed: DirichletConstraints, zeroTolerance: double
Discretization.boundaryFacetMap
export function boundaryFacetMap(int[][] elementNodes, int[][] boundaryFacets, string[] regions) -> BoundaryFacetMapParameters: elementNodes: int[][], boundaryFacets: int[][], regions: string[]
export record BoundaryFacetMap(public int[][] nodes, public string[] regions, public int[] orientations, public int[] ownerElements)Parameters: nodes: int[][], regions: string[], orientations: int[], ownerElements: int[]
Discretization.constraints
export function constraints(int count, int[] dofs, double[] values) -> DirichletConstraintsParameters: count: int, dofs: int[], values: double[]
Discretization.denseToCsr
export function denseToCsr(LinearSystem system, double zeroTolerance) -> CsrMatrixParameters: system: LinearSystem, zeroTolerance: double
export record DirichletConstraints(public int[] dofs, public double[] values)Parameters: dofs: int[], values: double[]
Discretization.dof
export function dof(DofMap map, int node, int component) -> intParameters: map: DofMap, node: int, component: int
Discretization.DofMap
export record DofMap(public int nodeCount, public int components, public int count)Parameters: nodeCount: int, components: int, count: int
Discretization.elementDofs
export function elementDofs(DofMap map, int[] nodes) -> int[]Parameters: map: DofMap, nodes: int[]
export record ErrorEstimate(public double l2, public double energy, public double maximum, public int samples)Parameters: l2: double, energy: double, maximum: double, samples: int
Discretization.errorReduction
export function errorReduction(double coarseError, double fineError) -> doubleParameters: coarseError: double, fineError: double
Discretization.estimateError
export function estimateError(double[] computed, double[] reference, double[] weights, double[] energyWeights) -> ErrorEstimateParameters: computed: double[], reference: double[], weights: double[], energyWeights: double[]
Discretization.gaussLegendre
export function gaussLegendre(int order) -> QuadratureRule1DParameters: order: int
export record LinearSystem(public double[] matrix, public double[] right, public int size)Parameters: matrix: double[], right: double[], size: int
export function linearTriangleBasis(double xi, double eta) -> TriangleBasisParameters: xi: double, eta: double
Discretization.mergeConstraints
export function mergeConstraints(int count, DirichletConstraints first, DirichletConstraints second) -> DirichletConstraintsParameters: count: int, first: DirichletConstraints, second: DirichletConstraints
Discretization.nodalDofMap
export function nodalDofMap(int nodeCount, int components) -> DofMapParameters: nodeCount: int, components: int
export record QuadratureRule1D(public double[] points, public double[] weights)Parameters: points: double[], weights: double[]
export record SparseLinearSystem(public CsrMatrix matrix, public double[] right, public int size)Parameters: matrix: CsrMatrix, right: double[], size: int
export record TriangleBasis(public double[] values, public double[] derivativeXi, public double[] derivativeEta)Parameters: values: double[], derivativeXi: double[], derivativeEta: double[]
export record TriangleQuadrature(public double[] xi, public double[] eta, public double[] weights)Parameters: xi: double[], eta: double[], weights: double[]
Discretization.triangleRule
export function triangleRule(int order) -> TriangleQuadratureParameters: order: int
Documentation version
Language 1.0.0, compiler 1.0.0, runtime 1.0.0. This reference is generated from the official SS documentation so package and language details stay consistent with the release.