WARPXM v1.10.0
Loading...
Searching...
No Matches
divergence_integral_by_parts.h
Go to the documentation of this file.
1#pragma once
2
3// Wm includes
4#include "dfem/tools/tools.h"
6#include <memory>
7
8namespace wxm
9{
10namespace dfem
11{
12namespace variable_adjuster
13{
14namespace auxiliary_variables
15{
16
91{
92public:
94
99 void setup(const WxCryptSet& wxc) override;
100
104 void solve(real time, variables_type& input) override;
105
106protected:
111 void rhs(real time,
112 const WxRange& element_scope_range,
113 std::vector<wxm::array::patch_array_t*> input);
114
116 std::string _basisSetName;
117
120
122 std::unique_ptr<WmUDGGeometry> _dg_geometry;
123
126
130
133
138
140 std::vector<size_t> _rhs_idcs;
141 std::vector<size_t> _all_idcs;
142};
143
145} // namespace auxiliary_variables
146} // namespace variable_adjuster
147} // namespace dfem
148} // namespace wxm
Definition: wmbasisarrayset.h:13
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
WxRange represents a hyper-rectangular domain of an n-dimensional space of integers.
Definition: wxrange.h:23
Definition: tools.h:22
This class solves: in weak form for auxiliary variable by parts in same manner as with DG.
Definition: divergence_integral_by_parts.h:91
std::unique_ptr< WmUDGGeometry > _dg_geometry
WmUDGGeometry.
Definition: divergence_integral_by_parts.h:122
bool _has_fluxes
Definition: divergence_integral_by_parts.h:134
WmBasisArraySet _basis_set
Spatial basis set.
Definition: divergence_integral_by_parts.h:119
bool _sources_gq
Definition: divergence_integral_by_parts.h:137
real _penalty_eta
Definition: divergence_integral_by_parts.h:129
bool _has_sources
Definition: divergence_integral_by_parts.h:135
void solve(real time, variables_type &input) override
Solves the spatial system and puts result in _rhs.
void rhs(real time, const WxRange &element_scope_range, std::vector< wxm::array::patch_array_t * > input)
Actually calculates the right hand side for Auxiliary Variable .
std::string _source_quad_style
Source quadrature style.
Definition: divergence_integral_by_parts.h:132
void setup(const WxCryptSet &wxc) override
Setup the spatial solver using the cryptset.
std::vector< size_t > _rhs_idcs
checking of indexes
Definition: divergence_integral_by_parts.h:140
std::vector< size_t > _all_idcs
Definition: divergence_integral_by_parts.h:141
std::string _basisSetName
Spatial basis set name.
Definition: divergence_integral_by_parts.h:116
bool _sources_lgl
Definition: divergence_integral_by_parts.h:136
real _penalty_beta
Penalties.
Definition: divergence_integral_by_parts.h:128
wxm::dfem::tools::scope_t _element_flux
Scope.
Definition: divergence_integral_by_parts.h:125
The WmVariableAdjuster class is a base class for variable adjusters.
Definition: variable_adjuster.h:31
wxm::temporal_solver::variables_type variables_type
Definition: variable_adjuster.h:41
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
#define real
Definition: wmoclunstructuredreconstruction.h:11