NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
ddtOperator.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// SPDX-FileCopyrightText: 2023 NeoN authors
3
4#pragma once
5
8#include "NeoN/core/input.hpp"
13
15{
16
17
18template<typename ValueType>
19class DdtOperator : public dsl::OperatorMixin<VolumeField<ValueType>>
20{
21
22public:
23
24 using VectorValueType = ValueType;
25
27
29
31
32 void build(const Input&) {}
33
34 std::string getName() const { return "DdtOperator"; }
35
36private:
37
38 const std::shared_ptr<SparsityPattern> sparsityPattern_;
39};
40
41
42} // namespace NeoN
A class to contain the data and executors for a field and define some basic operations.
Definition vector.hpp:53
void implicitOperation(la::LinearSystem< ValueType, localIdx > &ls, scalar, scalar dt)
void explicitOperation(Vector< ValueType > &source, scalar, scalar dt) const
DdtOperator(dsl::Operator::Type termType, VolumeField< ValueType > &field)
Represents a volume field in a finite volume method.
A class representing a linear system of equations.
std::variant< Dictionary, TokenList > Input
Definition input.hpp:13
float scalar
Definition scalar.hpp:14