Shifted Boundary Method System Requirements Specification

This template follows INL template TEM-135, "IT System Requirements Specification".

commentnote

This document serves as an addendum to Framework System Requirements Specification and captures information for SRS specific to the Shifted Boundary Method module.

Introduction

System Purpose

errorerror:Missing Template Item: "system-purpose"

Summarize the reason(s) for the system being developed or modified.

The document must include the "system-purpose" template item, this can be included by adding the following to the markdown file (sqa/shifted_boundary_method_srs.md):

!template! item key=system-purpose
Include text (in MooseDocs format) regarding the "system-purpose" template item here.
!template-end!

System Scope

errorerror:Missing Template Item: "system-scope"

Delineate the following:

  1. Identify the product(s) to be produced by name (Network Infrastructure, Host DBMS, Report Generator, HPC Server, etc.)

  2. Explain what the product(s) will, and, if necessary, will not do.

  3. Describe the application of the product being specified, including relevant benefits, objectives, and goals.

commentnote

Be consistent with similar statements in higher level specifications (e.g., business requirements specification).

The document must include the "system-scope" template item, this can be included by adding the following to the markdown file (sqa/shifted_boundary_method_srs.md):

!template! item key=system-scope
Include text (in MooseDocs format) regarding the "system-scope" template item here.
!template-end!

System Overview

System Context

The Shifted Boundary Method module is command-line driven. Like MOOSE, this is typical for a high-performance software that is designed to run across several nodes of a cluster system. As such, all usage of the software is through any standard terminal program generally available on all supported operating systems. Similarly, for the purpose of interacting through the software, there is only a single user, "the user", which interacts with the software through the command-line. The Shifted Boundary Method module does not maintain any back-end database or interact with any system daemons. It is an executable, which may be launched from the command line and writes out various result files as it runs.

Usage of the Shifted Boundary Method module and other [!ac](MOOSE)-based applications.

Figure 1: Usage of the Shifted Boundary Method module and other MOOSE-based applications.

System Functions

Since the Shifted Boundary Method module is a command-line driven application, all functionality provided in the software is operated through the use of standard UNIX command line flags and the extendable MOOSE input file. The Shifted Boundary Method module is completely extendable so individual design pages should be consulted for specific behaviors of each user-defined object.

User Characteristics

Like MOOSE, there are three kinds of users working on the Shifted Boundary Method module:

  • Shifted Boundary Method module Developers: These are the core developers of the Shifted Boundary Method module. They are responsible for following and enforcing the software development standards of the module, as well as designing, implementing, and maintaining the software.

  • Developers: A scientist or engineer that uses the Shifted Boundary Method module alongside MOOSE to build their own application. This user will typically have a background in modeling or simulation techniques (and perhaps numerical analysis) but may only have a limited skillset when it comes to code development using the C++ language. This is the primary focus group of the module. In many cases, these developers will be encouraged to contribute module-appropriate code back to the Shifted Boundary Method module, or to MOOSE itself.

  • Analysts: These are users that will run the code and perform analysis on the simulations they perform. These users may interact with developers of the system requesting new features and reporting bugs found and will typically make heavy use of the input file format.

Assumptions and Dependencies

The Shifted Boundary Method module is developed using MOOSE and can itself be based on various MOOSE modules, as such the SRS for the Shifted Boundary Method module is dependent upon the files listed at the beginning of this document. Any further assumptions or dependencies are outlined in the remainder of this section.

errorerror:Missing Template Item: "assumptions-and-dependencies"

List each of the factors that affect the requirements and should be taken into consideration for derivation of lower level requirements and design. These factors should include design inputs, design constraints, and installation considerations. Changes to these can affect the requirements in the specification. For example, an assumption may be that a specific operating system will be available on the hardware designated for the product. If, in fact, the operating system is not available, the specification would then have to change accordingly.

The document must include the "assumptions-and-dependencies" template item, this can be included by adding the following to the markdown file (sqa/shifted_boundary_method_srs.md):

!template! item key=assumptions-and-dependencies
Include text (in MooseDocs format) regarding the "assumptions-and-dependencies" template item here.
!template-end!

References

  1. ISO/IEC/IEEE 24765:2010(E). Systems and software engineering—Vocabulary. first edition, December 15 2010.[Export]
  2. ASME NQA-1. ASME NQA-1-2008 with the NQA-1a-2009 addenda: Quality Assurance Requirements for Nuclear Facility Applications. first edition, August 31 2009.[Export]

Definitions and Acronyms

This section defines, or provides the definition of, all terms and acronyms required to properly understand this specification.

Definitions

  • Verification: (1) The process of: evaluating a system or component to determine whether the products of a given development phase satisfy the conditions imposed at the start of that phase. (2) Formal proof of program correctness (e.g., requirements, design, implementation reviews, system tests) (24765:2010(E), 2010).

Acronyms

AcronymDescription
INLIdaho National Laboratory
LGPLGNU Lesser General Public License
MOOSEMultiphysics Object Oriented Simulation Environment
NQA-1Nuclear Quality Assurance Level 1
POSIXPortable Operating System Interface
SRSSoftware Requirement Specification

System Requirements

In general, the following is required for MOOSE-based development:

A POSIX compliant Unix-like operating system. This includes any modern Linux-based operating system (e.g., Ubuntu, Fedora, Rocky, etc.), or a Macintosh machine running either of the last two MacOS releases.

HardwareInformation
CPU Architecturex86_64, ARM (Apple Silicon)
Memory8 GB (16 GBs for debug compilation)
Disk Space30GB

LibrariesVersion / Information
GCC9.0.0 - 13.3.1
LLVM/Clang14.0.6 - 19
Intel (ICC/ICX)Not supported at this time
Python3.10 - 3.13
Python Packagespackaging pyaml jinja2

Functional Requirements

  • shifted_boundary_method: Coverage
  • 18.1.1The system shall
    1. report the closest distance vector and surface normal at element centroids when parsed-function and mesh-based surfaces are combined in a single query.
    2. build boundary element representations from an SBM surface mesh without a KDTree when KDTree construction is disabled.
    3. report when an SBM surface mesh is not watertight.
    4. return zero distance when the query point lies on the surface mesh.
  • shifted_boundary_method: Distance Calc
  • 18.2.1The system shall compute
    1. the distance field in 2D.
    2. the distance field in 3D.
    3. the distance field in 2D when signed level-set and mesh-based surfaces are combined.
    4. the distance field in 3D when signed level-set and mesh-based surfaces are combined.
    5. a signed distance field in 2D using a point-in-polyhedron in-out test to set the sign, including a gradient that points outward across the surface on both the interior and exterior sides.
    6. a signed distance field whose sign is supplied by a union checker through the point-in-surface check interface.
  • 18.2.2The system shall throw an error
    1. if ElementCentroidToSurfaceDistanceAux is applied to a nodal variable.
    2. if ShortestDistanceToSurface receives a function whose type is not ParsedFunction, UnsignedDistanceToSurfaceMesh, or SignedDistanceToSurfaceMesh.
    3. if the embedding mesh dimension does not match the SBM surface mesh dimension plus one.
    4. if the SBM surface mesh contains element types other than EDGE2 or TRI3.
    5. if the SBM surface mesh is distributed, since SBMSurfaceMeshBuilder requires a replicated mesh for its In-Out test.
    6. if an UnsignedDistanceToSurfaceMesh function is paired with an SBMSurfaceMeshBuilder that was configured without a KDTree.
    7. if a signed distance is requested from a function that is neither a ParsedFunction nor a SignedDistanceToSurfaceMesh.
    8. if SignedDistanceToSurfaceMesh receives an in-out test user object that does not implement the point-in-surface check interface.
  • shifted_boundary_method: In Out Test
  • 18.3.1The system shall be capable of performing point-in-polyhedron in-out testing to reclassify elements inside/outside a closed surface for different lambda cut fractions
    1. in 2D with lambda = 1.
    2. in 2D with lambda = 0.5.
    3. in 2D with lambda = 0.
    4. in 3D with lambda = 1.
    5. in 3D with lambda = 0.5.
    6. in 3D with lambda = 0.
  • 18.3.2The system shall produce an in-out classification from an explicit axis-aligned ray that matches the classification from the automatically selected PCA ray direction, confirming the auto direction is reproducible for an anisotropic surface
    1. in 2D.
    2. in 3D.
  • 18.3.3The system shall reject an InterceptedElementModifier lambda outside the inclusive range from zero to one.
  • 18.3.4The system shall reject a non-positive tolerance for the point-in-polyhedron in-out test.
  • 18.3.5The system shall reclassify elements inside/outside a surface described by a signed level-set function supplied to InterceptedElementModifier instead of a geometric in-out user object.
  • 18.3.6The system shall allow an InterceptedElementModifier to classify points using any user object implementing the point-in-surface check interface, including a signed-function checker.
  • 18.3.7The system shall assign a dedicated intercepted subdomain ID to elements the surface cuts through when mark_intercepted is enabled.
  • 18.3.8The system shall classify an element as intercepted when a closed surface lies within the element without enclosing any element nodes.
  • 18.3.9The system shall classify an element as intercepted when a closed signed level-set surface lies within the element without enclosing any element nodes.
  • 18.3.10The system shall classify an element whose nodes all lie outside a surface as intercepted rather than outside when the surface clips a finite region of the element interior, using the quadrature occupied-ratio check.
  • 18.3.11The system shall apply the occupied-ratio in-out classification to a polygonal surface with sharp corners on a refined mesh, marking an element whose nodes all lie outside the polygon as intercepted where a corner clips the element interior.
  • 18.3.12The system shall write the oriented bounding box and ray meshes used by the in-out test to file when the corresponding file names are provided.
  • 18.3.13The system shall write the oriented bounding box and shortest-axis ray meshes built for the in-out test to standalone mesh files.
  • 18.3.14The system shall report an error when mark_intercepted is enabled without specifying the intercepted subdomain ID.
  • 18.3.15The system shall report an error when an InterceptedElementModifier is configured with neither an in-out test user object nor a signed distance function.
  • 18.3.16The system shall report an error when an InterceptedElementModifier receives an in-out test user object that does not implement the point-in-surface check interface.
  • 18.3.17The system shall report an error when an InterceptedElementModifier is configured with both an in-out test user object and a signed distance function.
  • shifted_boundary_method: Subdomain Element Modifier
  • 18.4.1The system shall assign subdomain IDs to a background mesh from grain-boundary loops using per-subdomain in-out tests, marking each element with the grain that occupies the largest area fraction when several grains meet at interior corners.
  • 18.4.2The system shall assign a dedicated intercepted subdomain ID to background elements straddling a grain boundary when mark_intercepted is enabled in SubdomainElementModifier.
  • 18.4.3The system shall report, for an arbitrary point, which grain (subdomain) of a SurfaceMeshBySubdomainBuilder surface mesh contains it and whether it lies inside any grain, returning the invalid-subdomain sentinel and a not-inside result for points outside every grain.
  • 18.4.4The system shall report whether the SurfaceMeshBySubdomainBuilder surface mesh is watertight when watertightness checking is enabled.
  • 18.4.5The system shall throw an error
    1. if the SurfaceMeshBySubdomainBuilder surface mesh is distributed, since it requires a replicated mesh for its In-Out test.
    2. if the embedding mesh dimension does not match the surface mesh dimension plus one.
    3. if the SurfaceMeshBySubdomainBuilder surface mesh contains element types other than EDGE2 or TRI3.
    4. if the fixed_x_ray method is requested for PointInSubdomainCheckUO, which performs per-subdomain ray-casting and cannot use the whole-mesh TriangleManifold engine.
    5. if a point is contained in more than one subdomain of a PointInSubdomainCheckUO surface mesh, since a single-subdomain query is then ambiguous.
  • shifted_boundary_method: Activeelementfractiontest.Unit Tests
  • 18.5.1The system shall compute the fraction of a quadrilateral element occupied by the physical domain when the element is fully inside, fully outside, or cut in half by the true boundary.
  • shifted_boundary_method: Classifypartialelementtest.Unit Tests
  • 18.6.1The system shall classify fully active and fully inactive elements independently of partial-element options.
  • 18.6.2The system shall assign the intercepted subdomain to partial elements when intercepted-element marking is enabled.
  • 18.6.3The system shall classify partial elements by comparing their inactive fraction with the lambda threshold.
  • 18.6.4The system shall apply partial-element classification when all nodes are active but the active fraction is not one.
  • 18.6.5The system shall determine element inactivity from active fraction and the endpoint and interior values of the lambda threshold.
  • shifted_boundary_method: Orientedboundingboxtest.Unit Tests
  • 18.7.1The system shall write an oriented three-dimensional bounding box as a mesh containing a first-order hexahedral element whose vertices coincide with the corners of the box.
  • 18.7.2The system shall write an oriented two-dimensional bounding box as a mesh containing a first-order quadrilateral element whose vertices coincide with the corners of the box.
  • 18.7.3The system shall write a ray along the shortest axis of an oriented bounding box as a mesh containing a first-order line element.
  • 18.7.4The system shall report geometry, projected coordinates, and point containment for an axis-aligned oriented bounding box.
  • 18.7.5The system shall report projected coordinates and point containment in the local basis of a rotated oriented bounding box.
  • 18.7.6The system shall initialize the corners and centroid of an oriented bounding box constructed without geometric data at the origin.
  • shifted_boundary_method: Sbmdistancefunctiontest.Unit Tests
  • 18.8.1The system shall compute the vector from a point to the zero level set of a signed-distance function.
  • 18.8.2The system shall return a zero distance vector for a function with zero gradient.
  • 18.8.3The system shall compute the unit gradient normal of a signed-distance function.
  • 18.8.4The system shall select the distance and normal vectors of the nearest surface from multiple functions.
  • 18.8.5The system shall compute the signed distance to a union as the minimum signed distance of its component functions.
  • 18.8.6The system shall reject unsupported function types when computing signed distance to a union.
  • shifted_boundary_method: Sbmsurfacedistancetest.Unit Tests
  • 18.9.1The system shall compute the normal distance vector from a point to a first-order line element when the normal projection of the point lies within the element.
  • 18.9.2The system shall compute the distance vector from a point to the nearest endpoint of a first-order line element when the normal projection of the point lies outside the element.
  • 18.9.3The system shall compute the direction and magnitude of the distance vector from a point to a tilted first-order line element.
  • 18.9.4The system shall compute the normal distance vector from a point to a first-order triangular surface element when the normal projection of the point lies within the element.
  • 18.9.5The system shall compute distance vectors from points on and off a tilted first-order triangular surface element to their nearest points on the element.
  • shifted_boundary_method: Watertighttest.Unit Tests
  • 18.10.1The system shall identify open and closed two-dimensional boundary loops as non-watertight and watertight, respectively.
  • 18.10.2The system shall identify open and closed three-dimensional boundary surfaces as non-watertight and watertight, respectively.

Usability Requirements

No requirements of this type exist for this application, beyond those of its dependencies.

Performance Requirements

No requirements of this type exist for this application, beyond those of its dependencies.

System Interfaces

No requirements of this type exist for this application, beyond those of its dependencies.

System Operations

Human System Integration Requirements

The Shifted Boundary Method module is command line driven and conforms to all standard terminal behaviors. Specific human system interaction accommodations shall be a function of the end-user's terminal. MOOSE (and therefore the Shifted Boundary Method module) does support optional coloring within the terminal's ability to display color, which may be disabled.

Maintainability

  • The latest working version (defined as the version that passes all tests in the current regression test suite) shall be publicly available at all times through the repository host provider.

  • Flaws identified in the system shall be reported and tracked in a ticket or issue based system. The technical lead will determine the severity and priority of all reported issues and assign resources at their discretion to resolve identified issues.

  • The software maintainers will entertain all proposed changes to the system in a timely manner (within two business days).

  • The core software in its entirety will be made available under the terms of a designated software license. These license terms are outlined in the LICENSE file alongside the Shifted Boundary Method module source code. As a MOOSE physics module, the license for the Shifted Boundary Method module is identical to that of the framework - that is, the LGPL version 2.1 license.

Reliability

errorerror:Missing Template Item: "reliability"

Specify the system reliability requirements in quantitative terms, including the conditions under which the reliability requirements are to be met. This may also include the reliability apportionment model to support allocation of reliability values assigned to system functions for their share in achieving desired system reliability.

The document must include the "reliability" template item, this can be included by adding the following to the markdown file (sqa/shifted_boundary_method_srs.md):

!template! item key=reliability
Include text (in MooseDocs format) regarding the "reliability" template item here.
!template-end!

System Modes and States

MOOSE applications normally run in normal execution mode when an input file is supplied. However, there are a few other modes that can be triggered with various command line flags as indicated here:

Command Line FlagDescription of mode
-i <input_file>Normal execution mode
--split-mesh <splits>Read the mesh block splitting the mesh into two or more pieces for use in a subsequent run
--use-split(implies -i flag) Execute the simulation but use pre-split mesh files instead of the mesh from the input file
--yamlOutput all object descriptions and available parameters in YAML format
--jsonOutput all object descriptions and available parameters in JSON format
--syntaxOutput all registered syntax
--registryOutput all known objects and actions
--registry-hitOutput all known objects and actions in HIT format
--mesh-only (implies -i flag)Run only the mesh related tasks and output the final mesh that would be used for the simulation
--start-in-debugger <debugger>Start the simulation attached to the supplied debugger
commentnote

The list of system-modes may not be extensive as the system is designed to be extendable to end-user applications. The complete list of command line options for applications can be obtained by running the executable with zero arguments. See the command line usage.

Physical Characteristics

The Shifted Boundary Method module is software only with no associated physical media. See System Requirements for a description of the minimum required hardware necessary for running the Shifted Boundary Method module.

Environmental Conditions

Not Applicable

System Security

MOOSE-based applications such as the Shifted Boundary Method module have no requirements or special needs related to system security. The software is designed to run completely in user-space with no elevated privileges required nor recommended.

Information Management

The core framework and all modules in their entirety will be made publicly available on an appropriate repository hosting site. Day-to-day backups and security services will be provided by the hosting service. More information about MOOSE backups of the public repository on INL-hosted services can be found on the following page: GitHub Backups

Polices and Regulations

MOOSE-based applications must comply with all export control restrictions.

System Life Cycle Sustainment

MOOSE-based development follows various agile methods. The system is continuously built and deployed in a piecemeal fashion since objects within the system are more or less independent. Every new object requires a test, which in turn requires an associated requirement and design description. The Shifted Boundary Method module development team follows the NQA-1 standards.

Packaging, Handling, Shipping and Transportation

No special requirements are needed for packaging or shipping any media containing MOOSE and Shifted Boundary Method module source code. However, some MOOSE-based applications that use the Shifted Boundary Method module may be export-controlled, in which case all export control restrictions must be adhered to when packaging and shipping media.

Verification

The regression test suite will employ several verification tests using comparison against known analytical solutions, the method of manufactured solutions, and convergence rate analysis.