Skip to content
OFFICIAL SS DOCUMENTATION

SS.Discretization 1.2.0

Quadrature, basis, degree-of-freedom, composable constraint, assembly, sparse-conversion, and error-estimation contracts
API 1.2.0
MIT
source

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

Public signature
export function applyDirichlet(LinearSystem system, DirichletConstraints prescribed) -> LinearSystem

Parameters: system: LinearSystem, prescribed: DirichletConstraints


Public signature
export function assembleCsr(int dofCount, int[][] elementDofs, double[][] elementMatrices, double zeroTolerance) -> CsrMatrix

Parameters: dofCount: int, elementDofs: int[][], elementMatrices: double[][], zeroTolerance: double


Public signature
export function assembleDense(int dofCount, int[][] elementDofs, double[][] elementMatrices, double[][] elementVectors) -> LinearSystem

Parameters: dofCount: int, elementDofs: int[][], elementMatrices: double[][], elementVectors: double[][]


Public signature
export function assembleSparseWithBoundary(int dofCount, int[][] elementDofs, double[][] elementMatrices, double[][] elementVectors, int[][] boundaryDofs, double[][] boundaryMatrices, double[][] boundaryVectors, DirichletConstraints prescribed, double zeroTolerance) -> SparseLinearSystem

Parameters: dofCount: int, elementDofs: int[][], elementMatrices: double[][], elementVectors: double[][], boundaryDofs: int[][], boundaryMatrices: double[][], boundaryVectors: double[][], prescribed: DirichletConstraints, zeroTolerance: double


Public signature
export function boundaryFacetMap(int[][] elementNodes, int[][] boundaryFacets, string[] regions) -> BoundaryFacetMap

Parameters: elementNodes: int[][], boundaryFacets: int[][], regions: string[]


Public signature
export record BoundaryFacetMap(public int[][] nodes, public string[] regions, public int[] orientations, public int[] ownerElements)

Parameters: nodes: int[][], regions: string[], orientations: int[], ownerElements: int[]


Public signature
export function constraints(int count, int[] dofs, double[] values) -> DirichletConstraints

Parameters: count: int, dofs: int[], values: double[]


Public signature
export function denseToCsr(LinearSystem system, double zeroTolerance) -> CsrMatrix

Parameters: system: LinearSystem, zeroTolerance: double


Public signature
export record DirichletConstraints(public int[] dofs, public double[] values)

Parameters: dofs: int[], values: double[]


Public signature
export function dof(DofMap map, int node, int component) -> int

Parameters: map: DofMap, node: int, component: int


Public signature
export record DofMap(public int nodeCount, public int components, public int count)

Parameters: nodeCount: int, components: int, count: int


Public signature
export function elementDofs(DofMap map, int[] nodes) -> int[]

Parameters: map: DofMap, nodes: int[]


Public signature
export record ErrorEstimate(public double l2, public double energy, public double maximum, public int samples)

Parameters: l2: double, energy: double, maximum: double, samples: int


Public signature
export function errorReduction(double coarseError, double fineError) -> double

Parameters: coarseError: double, fineError: double


Public signature
export function estimateError(double[] computed, double[] reference, double[] weights, double[] energyWeights) -> ErrorEstimate

Parameters: computed: double[], reference: double[], weights: double[], energyWeights: double[]


Public signature
export function gaussLegendre(int order) -> QuadratureRule1D

Parameters: order: int


Public signature
export record LinearSystem(public double[] matrix, public double[] right, public int size)

Parameters: matrix: double[], right: double[], size: int


Public signature
export function linearTriangleBasis(double xi, double eta) -> TriangleBasis

Parameters: xi: double, eta: double


Public signature
export function mergeConstraints(int count, DirichletConstraints first, DirichletConstraints second) -> DirichletConstraints

Parameters: count: int, first: DirichletConstraints, second: DirichletConstraints


Public signature
export function nodalDofMap(int nodeCount, int components) -> DofMap

Parameters: nodeCount: int, components: int


Public signature
export record QuadratureRule1D(public double[] points, public double[] weights)

Parameters: points: double[], weights: double[]


Public signature
export record SparseLinearSystem(public CsrMatrix matrix, public double[] right, public int size)

Parameters: matrix: CsrMatrix, right: double[], size: int


Public signature
export record TriangleBasis(public double[] values, public double[] derivativeXi, public double[] derivativeEta)

Parameters: values: double[], derivativeXi: double[], derivativeEta: double[]


Public signature
export record TriangleQuadrature(public double[] xi, public double[] eta, public double[] weights)

Parameters: xi: double[], eta: double[], weights: double[]


Public signature
export function triangleRule(int order) -> TriangleQuadrature

Parameters: 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.