Assemble fluid and electric, magnetic, or full Maxwell sectors with shared exchange laws.
More...
|
| KOKKOS_FUNCTION | CoupledFluidElectromagnetism (FluidPhysics const &fluid, ElectromagneticPhysics const &electromagnetic) |
| |
| KOKKOS_FUNCTION coupling::ElectromagneticExchange | coupling_sources (State const &state, Vector const &total_current, Vector const &velocity) const |
| | Evaluate both exchanges using the reconstructed current form.
|
| |
| KOKKOS_FUNCTION coupling::ElectromagneticExchange | coupling_sources (State const &state, Vector const &total_current) const |
| |
| KOKKOS_FUNCTION Scalar | field_energy (State const &state) const |
| |
| KOKKOS_FUNCTION ElectromagneticPhysics::State | field_rate (Scalar const ¤t_divergence, Vector const &curl_magnetic_field, Vector const &curl_electric_field, Vector const &total_current) const |
| |
| KOKKOS_FUNCTION Vector | current (State const &state, Vector const &velocity) const |
| |
| KOKKOS_FUNCTION FluidPhysics::State | fluid_state (State const &state) const |
| |
| KOKKOS_FUNCTION Vector | current (State const &state) const |
| |
| template<class Fluid = FluidPhysics> |
| KOKKOS_FUNCTION Fluid::Flux | flux (State const &state, typename Fluid::VelocityGradient const &velocity_gradient, Vector const &temperature_gradient, int normal, Vector const &total_current) const |
| |
template<class Fluid = FluidPhysics>
requires (has_electric) |
| KOKKOS_FUNCTION Fluid::Flux | flux (State const &state, typename Fluid::VelocityGradient const &velocity_gradient, Vector const &temperature_gradient, int normal) const |
| |
| template<class FluidFlux > |
| KOKKOS_FUNCTION State | operator() (State const &state, FluidFlux const &fluid_flux_divergence, Scalar const ¤t_divergence, Vector const &curl_magnetic_field, Vector const &curl_electric_field, Vector const &total_current) const |
| |
| KOKKOS_FUNCTION Scalar | combined_energy (State const &state) const |
| |
| KOKKOS_FUNCTION Vector | transport (State const &state, Vector const &velocity, Vector const &total_current) const |
| |
| KOKKOS_FUNCTION Vector | momentum_rate (State const &state, Vector const &velocity, Vector const &bernoulli_gradient, Vector const &velocity_laplacian, Vector const &total_current) const |
| |
| KOKKOS_FUNCTION State | operator() (Vector const &transport_curl, Vector const &vorticity_laplacian, Scalar const ¤t_divergence, Vector const &curl_magnetic_field, Vector const &curl_electric_field, Vector const &total_current) const |
| |
template<PhysicsConcept FluidPhysics, PhysicsConcept ElectromagneticPhysics,
EnergyConvention Energy = EnergyConvention::Fluid>
class similie::physics::CoupledFluidElectromagnetism< FluidPhysics, ElectromagneticPhysics, Energy >
Assemble fluid and electric, magnetic, or full Maxwell sectors with shared exchange laws.
The state contains the two physical sectors; the stateless interactions own no new degrees of freedom. get<0>() is the fluid, get<1>() is the field model, and get<2/3>() are the generated electric/magnetic coupling objects.
The caller computes spatial derivatives with exterior operators. In particular, it supplies reconstructed forms to the Maxwell update and force/power evaluation. It reduces the same current for charge divergence. Constitutive current laws and material parameters belong to the field model.
For compressible flow, Fluid stores thermal+kinetic energy and adds J.E to its rate. FluidAndField stores that energy plus W(D,B), subtracts W when evaluating fluid primitives, and adds E cross H to the energy flux instead. Its rate receives no internal exchange source. Joule heat must not be added again. The field_energy_source diagnostic is already represented by -J in the displacement update; it is not an additional field evolution equation.
For incompressible flow, transport includes force/density before taking its curl. The caller supplies that complete curl to the vorticity update; no thermal or total-energy variable is evolved in this formulation.
- Important
- This operator and documentation is fully AI-generated.
Definition at line 44 of file coupled_fluid_electromagnetism.hpp.