OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::twoD::dispersion::Tensor Struct Reference

#include <GroundwaterDispersion.hpp>

Collaboration diagram for openswmm::twoD::dispersion::Tensor:

Public Member Functions

std::array< double, 2 > apply (const std::array< double, 2 > &g) const
 Multiply a two-component gradient by this symmetric tensor.
 

Public Attributes

double xx = 0
 
double xy = 0
 
double yy = 0
 

Member Function Documentation

◆ apply()

std::array< double, 2 > openswmm::twoD::dispersion::Tensor::apply ( const std::array< double, 2 > & g) const
inline

Multiply a two-component gradient by this symmetric tensor.

Parameters
[in]gBorrowed X/Y gradient array; not retained.
Returns
Value-owned tensor-gradient product; units are tensor coefficient times g units. No allocation, validation or mutation.
Here is the caller graph for this function:

Member Data Documentation

◆ xx

double openswmm::twoD::dispersion::Tensor::xx = 0

◆ xy

double openswmm::twoD::dispersion::Tensor::xy = 0

◆ yy

double openswmm::twoD::dispersion::Tensor::yy = 0

The documentation for this struct was generated from the following file: