hummingbird
Solving the self-adjoint angular flux transport equation using spectral elements on Cartesian geometry
Loading...
Searching...
No Matches
constant_volumetric_source.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright (c) 2026, Liam Pohlmann
3
4#ifndef HUMMINGBIRD_PHYSICS_CONSTANT_VOLUMETRIC_SOURCE_H_
5#define HUMMINGBIRD_PHYSICS_CONSTANT_VOLUMETRIC_SOURCE_H_
6
8
9namespace hummingbird {
10/**
11 * @brief Defines a constant-value, isotropic volumetric source
12 *
13 */
15 public:
16 /**
17 * @brief Construct a new Constant Volumetric Source object
18 *
19 * @param strength Isotropic source strength
20 */
21 ConstantVolumetricSource(const double strength);
22
23 /**
24 * @brief See SourceBase. This overridden function does *not* need any input
25 * parameters to be passed.
26 *
27 */
28 double EvaluateAtNode(const Node& node = Node(0, 0, 0, 0),
29 const Ordinate& ordinate = Ordinate(0, 0)) override;
30
31 private:
32 /// @brief Isotropic source strength
33 const double strength_;
34};
35} // namespace hummingbird
36
37#endif // HUMMINGBIRD_PHYSICS_CONSTANT_VOLUMETRIC_SOURCE_H_
const double strength_
Isotropic source strength.
ConstantVolumetricSource(const double strength)
Construct a new Constant Volumetric Source object.
double EvaluateAtNode(const Node &node=Node(0, 0, 0, 0), const Ordinate &ordinate=Ordinate(0, 0)) override
See SourceBase. This overridden function does not need any input parameters to be passed.
Defines a solid angle, or ordinate, in spherical geometry.
Definition ordinate.h:15
SourceBase()=default
Construct a new Source Base object.
A point in the mesh holding its coordinates, boundary info, and flux solution values.
Definition node.h:26