SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ForceFree::Sources Struct Reference

Compute the source terms for the GRFFE system with divergence cleaning. More...

#include <Sources.hpp>

Public Types

using return_tags = implementation defined
 
using argument_tags = implementation defined
 

Static Public Member Functions

static void apply (gsl::not_null< tnsr::I< DataVector, 3, Frame::Inertial > * > source_tilde_e, gsl::not_null< tnsr::I< DataVector, 3, Frame::Inertial > * > source_tilde_b, gsl::not_null< Scalar< DataVector > * > source_tilde_psi, gsl::not_null< Scalar< DataVector > * > source_tilde_phi, const tnsr::I< DataVector, 3, Frame::Inertial > &tilde_e, const tnsr::I< DataVector, 3, Frame::Inertial > &tilde_b, const Scalar< DataVector > &tilde_psi, const Scalar< DataVector > &tilde_phi, const Scalar< DataVector > &tilde_q, double kappa_psi, double kappa_phi, double parallel_conductivity, const Scalar< DataVector > &lapse, const tnsr::i< DataVector, 3, Frame::Inertial > &d_lapse, const tnsr::iJ< DataVector, 3, Frame::Inertial > &d_shift, const tnsr::ijj< DataVector, 3, Frame::Inertial > &d_spatial_metric, const tnsr::ii< DataVector, 3, Frame::Inertial > &spatial_metric, const tnsr::II< DataVector, 3, Frame::Inertial > &inv_spatial_metric, const Scalar< DataVector > &sqrt_det_spatial_metric, const tnsr::ii< DataVector, 3, Frame::Inertial > &extrinsic_curvature)
 

Detailed Description

Compute the source terms for the GRFFE system with divergence cleaning.

S(E~i)=αγJiE~jjβi+ψ~(γijjααγjkΓjki)S(B~i)=B~jjβi+ϕ~(γijjααγjkΓjki)S(ψ~)=E~kkα+αq~αϕ~(K+κϕ)S(ϕ~)=B~kkααϕ~(K+κϕ)S(q~)=0

where the conserved variables E~i,B~i,ψ~,ϕ~,q~ are densitized electric field, magnetic field, magnetic divergence cleaning field, electric divergence cleaning field, and electric charge density.

Ji is the spatial electric current density, α is the lapse, βi is the shift, γij is the spatial metric, γ is the determinant of spatial metric, Γjki is the spatial Christoffel symbol, K is the trace of extrinsic curvature. κϕ and κψ are damping parameters associated with divergence cleaning of magnetic and electric fields, respectively.


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