NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
ddt.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2//
3// SPDX-FileCopyrightText: 2023 NeoN authors
4
5#pragma once
6
9
11{
12
13template<typename VectorType>
14class Ddt : public OperatorMixin<VectorType>
15{
16
17public:
18
19 Ddt(VectorType& field)
20 : OperatorMixin<VectorType>(field.exec(), field, Operator::Type::Implicit)
21 {}
22
23 std::string getName() const { return "TimeOperator"; }
24
26
31};
32
33/* @brief factory function to create a Ddt term as ddt() */
34template<typename VectorType>
35Ddt<VectorType> ddt(VectorType& in)
36{
37 return Ddt(in);
38};
39
40} // namespace NeoN
A class to contain the data and executors for a field and define some basic operations.
Definition vector.hpp:53
virtual const Executor & exec() const final
Definition operator.hpp:42
void explicitOperation(Vector< scalar > &, scalar, scalar)
Definition ddt.hpp:25
void implicitOperation(la::LinearSystem< scalar, localIdx > &, scalar, scalar)
Definition ddt.hpp:27
Ddt(VectorType &field)
Definition ddt.hpp:19
std::string getName() const
Definition ddt.hpp:23
A class representing a linear system of equations.
#define NF_ERROR_EXIT(message)
Macro for printing an error message and aborting the program.
Definition error.hpp:108
Ddt< VectorType > ddt(VectorType &in)
Definition ddt.hpp:35
float scalar
Definition scalar.hpp:14