SpECTRE  v2024.04.12
elliptic::dg::Actions::DgOperator< System, Linearized, TemporalIdTag, PrimalFieldsTag, PrimalFluxesTag, OperatorAppliedToFieldsTag, PrimalMortarFieldsTag, PrimalMortarFluxesTag > Struct Template Reference

Apply the DG operator to the PrimalFieldsTag and write the result to the OperatorAppliedToFieldsTag More...

#include <ApplyOperator.hpp>

Public Types

using apply_actions = tmpl::list< detail::PrepareAndSendMortarData< System, Linearized, TemporalIdTag, PrimalFieldsTag, PrimalFluxesTag, OperatorAppliedToFieldsTag, PrimalMortarFieldsTag, PrimalMortarFluxesTag >, detail::ReceiveMortarDataAndApplyOperator< System, Linearized, TemporalIdTag, PrimalFieldsTag, PrimalFluxesTag, OperatorAppliedToFieldsTag, PrimalMortarFieldsTag, PrimalMortarFluxesTag > >
 
using amr_projectors = tmpl::list<::amr::projectors::DefaultInitialize< PrimalFluxesTag, OperatorAppliedToFieldsTag, ::Tags::Mortars< elliptic::dg::Tags::MortarData< typename TemporalIdTag::type, typename PrimalMortarFieldsTag::tags_list, typename PrimalMortarFluxesTag::tags_list >, Dim > > >
 

Detailed Description

template<typename System, bool Linearized, typename TemporalIdTag, typename PrimalFieldsTag, typename PrimalFluxesTag, typename OperatorAppliedToFieldsTag, typename PrimalMortarFieldsTag = PrimalFieldsTag, typename PrimalMortarFluxesTag = PrimalFluxesTag>
struct elliptic::dg::Actions::DgOperator< System, Linearized, TemporalIdTag, PrimalFieldsTag, PrimalFluxesTag, OperatorAppliedToFieldsTag, PrimalMortarFieldsTag, PrimalMortarFluxesTag >

Apply the DG operator to the PrimalFieldsTag and write the result to the OperatorAppliedToFieldsTag

Add the apply_actions list to the action list of a parallel component to compute the elliptic DG operator or its linearization. The operator involves a communication between nearest-neighbor elements. See elliptic::dg for details on the elliptic DG operator. Make sure to add elliptic::dg::Actions::initialize_operator to the initialization phase of your parallel component so the required DataBox tags are set up before applying the operator.

The result of the computation is written to the OperatorAppliedToFieldsTag. Additionally, the primal fluxes are written to the PrimalFluxesTag as an intermediate result. The auxiliary fields and fluxes are discarded to avoid inflating the memory usage.

You can specify the PrimalMortarFieldsTag and the PrimalMortarFluxesTag to re-use mortar-data memory buffers from other operator applications, for example when applying the nonlinear and linearized operator. They default to the PrimalFieldsTag and the PrimalFluxesTag, meaning memory buffers corresponding to these tags are set up in the DataBox.

AMR
Also add the amr_projectors to the list of AMR projectors to support AMR.

The documentation for this struct was generated from the following file: