NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType > Class Template Reference

#include <sourceTerm.hpp>

Inheritance diagram for NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >:
NeoFOAM::dsl::OperatorMixin< VolumeField< ValueType > >

Public Types

using FieldValueType = ValueType
 

Public Member Functions

 SourceTerm (dsl::Operator::Type termType, VolumeField< scalar > &coefficients, VolumeField< ValueType > &field)
 
void explicitOperation (Field< ValueType > &source)
 
la::LinearSystem< ValueType, localIdxcreateEmptyLinearSystem () const
 
void implicitOperation (la::LinearSystem< ValueType, localIdx > &ls)
 
void build (const Input &input)
 
std::string getName () const
 
- Public Member Functions inherited from NeoFOAM::dsl::OperatorMixin< VolumeField< ValueType > >
 OperatorMixin (const Executor exec, const Coeff &coeffs, VolumeField< ValueType > &field, Operator::Type type)
 
Operator::Type getType () const
 
virtual ~OperatorMixin ()=default
 
virtual const Executorexec () const final
 
CoeffgetCoefficient ()
 
const CoeffgetCoefficient () const
 
VolumeField< ValueType > & getField ()
 
const VolumeField< ValueType > & getField () const
 
void build (const Input &input)
 

Additional Inherited Members

- Protected Attributes inherited from NeoFOAM::dsl::OperatorMixin< VolumeField< ValueType > >
const Executor exec_
 Executor associated with the field. (CPU, GPU, openMP, etc.)
 
Coeff coeffs_
 
VolumeField< ValueType > & field_
 
Operator::Type type_
 

Detailed Description

template<typename ValueType>
class NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >

Definition at line 19 of file sourceTerm.hpp.

Member Typedef Documentation

◆ FieldValueType

template<typename ValueType >
using NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >::FieldValueType = ValueType

Definition at line 24 of file sourceTerm.hpp.

Constructor & Destructor Documentation

◆ SourceTerm()

template<typename ValueType >
NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >::SourceTerm ( dsl::Operator::Type  termType,
VolumeField< scalar > &  coefficients,
VolumeField< ValueType > &  field 
)
inline

Definition at line 26 of file sourceTerm.hpp.

Member Function Documentation

◆ build()

template<typename ValueType >
void NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >::build ( const Input input)
inline

Definition at line 88 of file sourceTerm.hpp.

◆ createEmptyLinearSystem()

template<typename ValueType >
la::LinearSystem< ValueType, localIdx > NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >::createEmptyLinearSystem ( ) const
inline

Definition at line 52 of file sourceTerm.hpp.

◆ explicitOperation()

template<typename ValueType >
void NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >::explicitOperation ( Field< ValueType > &  source)
inline

Definition at line 37 of file sourceTerm.hpp.

◆ getName()

template<typename ValueType >
std::string NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >::getName ( ) const
inline

Definition at line 93 of file sourceTerm.hpp.

◆ implicitOperation()

template<typename ValueType >
void NeoFOAM::finiteVolume::cellCentred::SourceTerm< ValueType >::implicitOperation ( la::LinearSystem< ValueType, localIdx > &  ls)
inline

Definition at line 68 of file sourceTerm.hpp.


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