Gyselalib++
 
Loading...
Searching...
No Matches
nulladvectionvx.hpp
1// SPDX-License-Identifier: MIT
2
3#pragma once
4#include "ddc_aliases.hpp"
5#include "iadvectionvx.hpp"
6
12template <class IdxRangeFdistribu, class IdxRangeSpatial>
13class NullAdvectionVelocity : public IAdvectionV<IdxRangeFdistribu, IdxRangeSpatial>
14{
15public:
16 NullAdvectionVelocity() = default;
17
18 ~NullAdvectionVelocity() override = default;
19
29 DField<IdxRangeFdistribu> operator()(
30 DField<IdxRangeFdistribu> allfdistribu,
31 [[maybe_unused]] DConstField<IdxRangeSpatial> electric_field,
32 [[maybe_unused]] double dt) const override
33 {
34 return allfdistribu;
35 }
36};
This is a class which imitates a velocity advection.
Definition nulladvectionvx.hpp:14
DField< IdxRangeFdistribu > operator()(DField< IdxRangeFdistribu > allfdistribu, DConstField< IdxRangeSpatial > electric_field, double dt) const override
Do nothing instead of advecting fdistribu along GridV for a duration dt.
Definition nulladvectionvx.hpp:29