import { MatN, VecN } from '@holotope/core'; import type { SimplexMetricDeformationN } from './simplex-deformation.js'; import { XpbdPotentialDomainErrorN } from './xpbd-potential-domain.js'; export type SimplexConstitutiveDomainReasonN = 'collapsed' | 'inverted' | 'non-positive-measure' | 'below-minimum-measure' | 'barrier-component-outside-float64'; /** Typed material-chart refusal, distinct from malformed input or arithmetic failure. */ export declare class SimplexConstitutiveDomainErrorN extends XpbdPotentialDomainErrorN { constructor(lawId: string, reason: SimplexConstitutiveDomainReasonN, message: string); } /** Common energy, stress, and current-gradient evidence for one simplex law. */ export interface SimplexConstitutiveEvaluationN { readonly deformation: SimplexMetricDeformationN; readonly material: TMaterial; /** Intrinsic k-measure of the rest simplex. */ readonly restMeasure: number; /** Energy per unit rest k-measure. */ readonly energyDensity: number; /** `restMeasure * energyDensity`. */ readonly energy: number; /** Symmetric second Piola stress in the deterministic rest-material basis. */ readonly secondPiolaStress: MatN; /** `d energy / d currentPositions[i]`; internal force is its negative. */ readonly currentGradients: readonly VecN[]; /** Norm of the summed gradients; translation invariance should make it zero. */ readonly netGradientResidual: number; } /** Internal shared constitutive-chart selection for intrinsic/full-dimensional J. */ export declare function positiveSimplexConstitutiveMeasureRatioN(deformation: SimplexMetricDeformationN, lawId: string, caller: string): number; interface CompleteSimplexConstitutiveEvaluationNOptions { readonly caller: string; readonly restPositions: readonly VecN[]; readonly currentPositions: readonly VecN[]; readonly deformation: SimplexMetricDeformationN; readonly material: TMaterial; readonly energyDensity: number; readonly secondPiolaStress: MatN; } /** Internal common assembly from a constitutive stress to vertex gradients. */ export declare function completeSimplexConstitutiveEvaluationN(options: CompleteSimplexConstitutiveEvaluationNOptions): SimplexConstitutiveEvaluationN; export {}; //# sourceMappingURL=simplex-constitutive.d.ts.map