|
NeoN
A framework for CFD software
|
Namespaces | |
| namespace | detail |
| namespace | temporal |
| namespace | exp |
| namespace | imp |
Classes | |
| class | Coeff |
| A class that represents a coefficient for the NeoN dsl. More... | |
| struct | PostAssemblyBase |
| class | SetReference |
| Post-assembly functor that pins one cell's value to a reference, removing the constant null space that arises when all boundaries have Neumann (zero-gradient) conditions on operators such as laplacian or div+laplacian. More... | |
| class | FixedValueConstraints |
| Post-assembly functor that pins a set of cells to prescribed values. More... | |
| class | Expression |
| class | Operator |
| class | OperatorMixin |
| class | Optimizer |
| Abstract base for DSL expression optimizers. More... | |
| class | DivLapOptimizer |
| Fuses separate implicit divergence and Laplacian operators into a single GaussGreenDivLaplacian kernel. More... | |
| class | SpatialOperator |
| class | TemporalOperator |
Concepts | |
| concept | HasExplicitOperator |
| concept | HasImplicitOperator |
| concept | HasImplicitOperatorScalarMtx |
| concept | IsSpatialOperator |
| concept | HasTemporalExplicitOperator |
| concept | HasTemporalImplicitOperator |
| concept | HasTemporalImplicitOperatorScalarMtx |
| concept | HasTemporalOperator |
Functions | |
| Coeff | operator* (const Coeff &lhs, const Coeff &rhs) |
| template<typename ValueType> | |
| Expression< ValueType > | operator+ (Expression< ValueType > lhs, const Expression< ValueType > &rhs) |
| template<typename ValueType> | |
| Expression< ValueType > | operator+ (Expression< ValueType > lhs, const SpatialOperator< ValueType > &rhs) |
| template<typename leftOperator, typename rightOperator> | |
| Expression< typename leftOperator::VectorValueType > | operator+ (leftOperator lhs, rightOperator rhs) |
| template<typename ValueType> | |
| Expression< ValueType > | operator* (scalar scale, const Expression< ValueType > &es) |
| template<typename ValueType> | |
| Expression< ValueType > | operator- (Expression< ValueType > lhs, const Expression< ValueType > &rhs) |
| template<typename ValueType> | |
| Expression< ValueType > | operator- (Expression< ValueType > lhs, const SpatialOperator< ValueType > &rhs) |
| template<typename leftOperator, typename rightOperator> | |
| Expression< typename leftOperator::VectorValueType > | operator- (leftOperator lhs, rightOperator rhs) |
| template<typename ExpressionType> | |
| ExpressionType | optimize (const ExpressionType &in) |
| Apply the default optimizer pipeline to an expression. | |
| template<typename ExpressionType> | |
| ExpressionType | optimize (const ExpressionType &in, const std::vector< std::shared_ptr< Optimizer< ExpressionType > > > &opts) |
| Apply a caller-supplied optimizer pipeline to an expression. | |
| template<typename VectorType, typename IndexType> | |
| std::optional< la::SolverStats > | solve (Expression< typename VectorType::ElementType, IndexType > &exp, VectorType &solution, scalar t, scalar dt, const Dictionary &fvSchemes, const Dictionary &fvSolution, std::vector< const PostAssemblyBase< typename VectorType::ElementType, IndexType > * > p={}) |
| KOKKOS_INLINE_FUNCTION scalar | copySign (const scalar mag, const scalar s) |
| Returns |mag| carrying the sign of s (scalar overload). | |
| KOKKOS_INLINE_FUNCTION scalar | componentCopySign (const scalar mag, const scalar s) |
| Componentwise sign-copy (scalar overload). | |
| KOKKOS_INLINE_FUNCTION Vec3 | componentCopySign (const Vec3 &mag, const Vec3 &s) |
| Componentwise sign-copy (Vec3 overload — all 3 components). | |
| KOKKOS_INLINE_FUNCTION scalar | componentMag (const scalar value) |
| Componentwise magnitude (scalar overload). | |
| KOKKOS_INLINE_FUNCTION Vec3 | componentMag (const Vec3 &value) |
| Componentwise magnitude (Vec3 overload — keeps all 3 components, does NOT collapse to the L2 norm that the global mag(Vec3) returns). | |
| KOKKOS_INLINE_FUNCTION scalar | componentMax (const scalar lhs, const scalar rhs) |
| Componentwise max (scalar overload). | |
| KOKKOS_INLINE_FUNCTION Vec3 | componentMax (const Vec3 &lhs, const Vec3 &rhs) |
| Componentwise max (Vec3 overload — per component). | |
| template<typename VectorType, typename MatrixValueType, typename RHSValueType, typename SystemMatrixType, typename BoundaryMatrixType> | |
| void | applyMatrixRelaxation (la::LinearSystem< MatrixValueType, RHSValueType, SystemMatrixType, BoundaryMatrixType > &ls, const VectorType &solution, scalar alpha) |
| template<typename VectorType> | |
| void | applyFieldRelaxation (VectorType &solution, const Vector< typename VectorType::ElementType > &previous, scalar alpha) |
| template<typename VectorType> | |
| auto | fieldRelaxationSnapshot (const VectorType &field) |
| template<typename ValueType> | |
| SpatialOperator< ValueType > | operator* (scalar scalarCoeff, SpatialOperator< ValueType > rhs) |
| template<typename ValueType> | |
| SpatialOperator< ValueType > | operator* (const Vector< scalar > &coeffVector, SpatialOperator< ValueType > rhs) |
| template<typename ValueType> | |
| SpatialOperator< ValueType > | operator* (const Coeff &coeff, SpatialOperator< ValueType > rhs) |
| template<typename ValueType> | |
| TemporalOperator< ValueType > | operator* (scalar scalarCoeff, TemporalOperator< ValueType > rhs) |
| template<typename ValueType> | |
| TemporalOperator< ValueType > | operator* (const Vector< scalar > &coeffVector, TemporalOperator< ValueType > rhs) |
| template<typename ValueType> | |
| TemporalOperator< ValueType > | operator* (const Coeff &coeff, TemporalOperator< ValueType > rhs) |
| void NeoN::dsl::applyFieldRelaxation | ( | VectorType & | solution, |
| const Vector< typename VectorType::ElementType > & | previous, | ||
| scalar | alpha ) |
Definition at line 356 of file solver.hpp.
| void NeoN::dsl::applyMatrixRelaxation | ( | la::LinearSystem< MatrixValueType, RHSValueType, SystemMatrixType, BoundaryMatrixType > & | ls, |
| const VectorType & | solution, | ||
| scalar | alpha ) |
Definition at line 214 of file solver.hpp.
Componentwise sign-copy (scalar overload).
Definition at line 140 of file solver.hpp.
Componentwise sign-copy (Vec3 overload — all 3 components).
Definition at line 146 of file solver.hpp.
Componentwise magnitude (scalar overload).
Definition at line 152 of file solver.hpp.
Componentwise magnitude (Vec3 overload — keeps all 3 components, does NOT collapse to the L2 norm that the global mag(Vec3) returns).
Definition at line 156 of file solver.hpp.
Componentwise max (scalar overload).
Definition at line 162 of file solver.hpp.
Componentwise max (Vec3 overload — per component).
Definition at line 168 of file solver.hpp.
Returns |mag| carrying the sign of s (scalar overload).
Definition at line 134 of file solver.hpp.
|
nodiscard |
Definition at line 389 of file solver.hpp.
| SpatialOperator< ValueType > NeoN::dsl::operator* | ( | const Coeff & | coeff, |
| SpatialOperator< ValueType > | rhs ) |
Definition at line 256 of file spatialOperator.hpp.
| TemporalOperator< ValueType > NeoN::dsl::operator* | ( | const Coeff & | coeff, |
| TemporalOperator< ValueType > | rhs ) |
Definition at line 294 of file temporalOperator.hpp.
| SpatialOperator< ValueType > NeoN::dsl::operator* | ( | const Vector< scalar > & | coeffVector, |
| SpatialOperator< ValueType > | rhs ) |
Definition at line 248 of file spatialOperator.hpp.
| TemporalOperator< ValueType > NeoN::dsl::operator* | ( | const Vector< scalar > & | coeffVector, |
| TemporalOperator< ValueType > | rhs ) |
Definition at line 286 of file temporalOperator.hpp.
| SpatialOperator< ValueType > NeoN::dsl::operator* | ( | scalar | scalarCoeff, |
| SpatialOperator< ValueType > | rhs ) |
Definition at line 239 of file spatialOperator.hpp.
| TemporalOperator< ValueType > NeoN::dsl::operator* | ( | scalar | scalarCoeff, |
| TemporalOperator< ValueType > | rhs ) |
Definition at line 277 of file temporalOperator.hpp.
|
inlinenodiscard |
Definition at line 620 of file expression.hpp.
|
inlinenodiscard |
Definition at line 594 of file expression.hpp.
|
inlinenodiscard |
Definition at line 602 of file expression.hpp.
|
inlinenodiscard |
Definition at line 610 of file expression.hpp.
|
inlinenodiscard |
Definition at line 637 of file expression.hpp.
|
inlinenodiscard |
Definition at line 645 of file expression.hpp.
|
inlinenodiscard |
Definition at line 653 of file expression.hpp.
| ExpressionType NeoN::dsl::optimize | ( | const ExpressionType & | in | ) |
Apply the default optimizer pipeline to an expression.
Runs every built-in optimizer (currently DivLapOptimizer) in sequence and returns the resulting expression. Each optimizer may replace, remove, or add operators; later optimizers see the output of earlier ones.
| ExpressionType | The DSL expression type. |
| in | Expression to optimize. |
Definition at line 110 of file optimizer.hpp.
| ExpressionType NeoN::dsl::optimize | ( | const ExpressionType & | in, |
| const std::vector< std::shared_ptr< Optimizer< ExpressionType > > > & | opts ) |
Apply a caller-supplied optimizer pipeline to an expression.
Runs each optimizer in opts in order, passing the output of one as the input to the next.
| ExpressionType | The DSL expression type. |
| in | Expression to optimize. |
| opts | Ordered list of optimizers to apply. |
Definition at line 131 of file optimizer.hpp.
| std::optional< la::SolverStats > NeoN::dsl::solve | ( | Expression< typename VectorType::ElementType, IndexType > & | exp, |
| VectorType & | solution, | ||
| scalar | t, | ||
| scalar | dt, | ||
| const Dictionary & | fvSchemes, | ||
| const Dictionary & | fvSolution, | ||
| std::vector< const PostAssemblyBase< typename VectorType::ElementType, IndexType > * > | p = {} ) |
Definition at line 98 of file solver.hpp.