Peano
|
#include "adaptive_softening_iact.h"
#include "adiabatic_index.h"
#include "hydro_parameters.h"
#include "signal_velocity.h"
Go to the source code of this file.
Functions | |
__attribute__ ((always_inline)) INLINE static void runner_iact_density(const float r2 | |
Density interaction between two particles. | |
kernel_deval (ui, &wi, &wi_dx) | |
adaptive_softening_add_correction_term (pi, ui, hi_inv, mj) | |
kernel_deval (uj, &wj, &wj_dx) | |
adaptive_softening_add_correction_term (pj, uj, hj_inv, mi) | |
adaptive_softening_add_correction_term (pi, ui, h_inv, mj) | |
Variables | |
const float | dx [3] |
const float const float | hi |
const float const float const float | hj |
const float const float const float struct part *restrict | pi |
const float const float const float struct part *restrict struct part *restrict | pj |
const float const float const float struct part *restrict struct part *restrict const float | a |
const float const float const float struct part *restrict struct part *restrict const float const float | H |
const float | r = sqrtf(r2) |
const float | r_inv = r ? 1.0f / r : 0.0f |
const float | mi = pi->mass |
const float | mj = pj->mass |
const float | hi_inv = 1.f / hi |
const float | ui = r * hi_inv |
pi | rho = mj * wi |
pi density | rho_dh = mj * (hydro_dimension * wi + ui * wi_dx) |
pi density | wcount = wi |
pi density | wcount_dh = (hydro_dimension * wi + ui * wi_dx) |
const float | hj_inv = 1.f / hj |
const float | uj = r * hj_inv |
float | dv [3] = pi->v[0] - pj->v[0] |
float | curlvr [3] = dv[1] * dx[2] - dv[2] * dx[1] |
const float | faci = mj * wi_dx * r_inv |
const float | facj = mi * wj_dx * r_inv |
const float | dvdr = dv[0] * dx[0] + dv[1] * dx[1] + dv[2] * dx[2] |
pi density | div_v = faci * dvdr |
pi density | rot_v [0] = faci * curlvr[0] |
const float | h_inv = 1.f / hi |
__attribute__ | ( | (always_inline) | ) | const |
Density interaction between two particles.
Calculate the gradient interaction between particle i and particle j.
Density interaction between two particles (non-symmetric).
r2 | Comoving square distance between the two particles. |
dx | Comoving vector separating both particles (pi - pj). |
hi | Comoving smoothing-length of particle i. |
hj | Comoving smoothing-length of particle j. |
pi | First particle. |
pj | Second particle. |
a | Current scale factor. |
H | Current Hubble parameter. |
r2 | Comoving square distance between the two particles. |
dx | Comoving vector separating both particles (pi - pj). |
hi | Comoving smoothing-length of particle i. |
hj | Comoving smoothing-length of particle j. |
pi | First particle. |
pj | Second particle (not updated). |
a | Current scale factor. |
H | Current Hubble parameter. |
Nothing to do here in this scheme.
r2 | Comoving squared distance between particle i and particle j. |
dx | Comoving distance vector between the particles (dx = pi->x - pj->x). |
hi | Comoving smoothing-length of particle i. |
hj | Comoving smoothing-length of particle j. |
pi | Particle i. |
pj | Particle j. |
a | Current scale factor. |
H | Current Hubble parameter. |
kernel_deval | ( | ui | , |
& | wi, | ||
& | wi_dx ) |
Referenced by swift2::kernels::legacy::density_kernel(), swift2::kernels::legacy::force_kernel(), swift2::kernels::legacy::forceKernelWithMasking(), and hydro_kernel_dump().
kernel_deval | ( | uj | , |
& | wj, | ||
& | wj_dx ) |
Definition at line 55 of file hydro_iact.h.
Referenced by applications::exahype2::euler::sphericalaccretion::addGravitationalSource_AlphaCDM(), tarch::la::aPowI(), tl::compose_fn< F, G >::call(), TP::Utilities::chebev(), checkUserDefinedType(), do_density(), do_density(), TP::Utilities::fourft(), applications::exahype2::euler::sphericalaccretion::SSInfall::getForceDensityNorm(), TP::TwoPunctures::interpol(), toolbox::blockstructured::interpolateCellDataAssociatedToVolumesIntoOverlappingCell_secondOrder(), applications::exahype2::euler::sphericalaccretion::SSInfall::mass_interpolate(), tarch::la::max(), applications::exahype2::CompressibleNavierStokes::NavierStokesSolver::nonconservativeProduct(), applications::exahype2::ccz4::Psi4Calc(), TP::TwoPunctures::PunctTaylorExpandAtArbitPosition(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), toolbox::finiteelements::stencilProduct(), tarch::la::tests::ScalarTest::testAbs(), tarch::la::tests::ScalarTest::testComparison(), toolbox::particles::assignmentchecks::tests::TestHelpers::testTruthTableSearchAndIDKeys(), and tarch::la::tests::VectorTest::testVectorVectorOperations().
Definition at line 98 of file hydro_iact.h.
Referenced by swift2::kernels::legacy::density_kernel().
Definition at line 108 of file hydro_iact.h.
float dv = pi->v[0] - pj->v[0] |
Definition at line 98 of file hydro_iact.h.
Referenced by TP::TwoPunctures::bicgstab(), swift2::kernels::legacy::density_kernel(), toolbox::particles::assignmentchecks::tests::internal::dropParticle(), TP::TwoPunctures::J_times_dv(), TP::TwoPunctures::JFD_times_dv(), toolbox::particles::assignmentchecks::tests::internal::liftParticle(), TP::TwoPunctures::LineRelax_al(), TP::TwoPunctures::LineRelax_be(), TP::TwoPunctures::Newton(), TP::TwoPunctures::relax(), TP::TwoPunctures::resid(), TP::TwoPunctures::SetMatrix_JFD(), and TP::TwoPunctures::TestRelax().
Definition at line 106 of file hydro_iact.h.
Referenced by swift2::kernels::legacy::density_kernel(), swift2::kernels::legacy::force_kernel(), and swift2::kernels::legacy::forceKernelWithMasking().
const float dx |
Definition at line 54 of file hydro_iact.h.
Referenced by ExaSeis::Derivatives< Shortcuts, num_nodes >::computeDerivatives_x_3D(), swift2::kernels::legacy::density_kernel(), swift2::kernels::legacy::densityKernelPairEvaluationPredicate(), do_density(), do_density(), Refinement::RefineDownToPosition< Shortcuts >::eval(), Refinement::RefinePosition< Shortcuts >::eval(), Refinement::RefineFilterCube< Shortcuts >::eval(), Refinement::RefineBetweenPositions< Shortcuts >::eval(), swift2::kernels::legacy::force_kernel(), swift2::kernels::legacy::forceKernelWithMasking(), ContextCurvilinear< Shortcuts, basisSize >::getElementSize(), ContextCartesian< Shortcuts, basisSize >::initUnknownsPatch(), ContextCurvilinear< Shortcuts, basisSize >::initUnknownsPatch(), ContextDiffuse< Shortcuts, basisSize >::initUnknownsPatch(), main(), ExaSeis::Derivatives< Shortcuts, num_nodes >::metricDerivatives(), applications::exahype2::ccz4::internal::recomputeAuxiliaryVariablesFD4_centralDifferences_LoopBody(), applications::exahype2::ccz4::internal::recomputeAuxiliaryVariablesFD4_leftDifferences_LoopBody(), applications::exahype2::ccz4::internal::recomputeAuxiliaryVariablesFD4_rightDifferences_LoopBody(), toolbox::particles::assignmentchecks::tests::TestHelpers::testAddingParticleMovingEvents(), toolbox::particles::assignmentchecks::tests::TestHelpers::testParticleWalk(), toolbox::particles::assignmentchecks::tests::TestHelpers::testParticleWalkSameTreeLevel(), toolbox::particles::assignmentchecks::tests::TestHelpers::testPeriodicBoundaryConditions(), toolbox::particles::assignmentchecks::tests::TestHelpers::testSieveSet(), and applications::exahype2::swe::TopologyParser::transformIndexCDFRangeToArray().
Definition at line 100 of file hydro_iact.h.
Definition at line 101 of file hydro_iact.h.
const float const float const float struct part *restrict const struct part *restrict const float const float H |
Definition at line 56 of file hydro_iact.h.
Referenced by applications::exahype2::ccz4::diagonal_gaugeWave(), do_density(), and do_density().
Definition at line 158 of file hydro_iact.h.
Referenced by swift2::kernels::legacy::hydro_end_density(), swift2::kernels::legacy::hydro_predict_extra(), and swift2::kernels::legacy::hydro_prepare_force().
const float const float hi |
Definition at line 54 of file hydro_iact.h.
Referenced by swift2::kernels::legacy::density_kernel(), swift2::kernels::legacy::densityKernelPairEvaluationPredicate(), do_density(), and do_density().
Definition at line 76 of file hydro_iact.h.
const float const float const float hj |
Definition at line 54 of file hydro_iact.h.
Referenced by do_density(), and do_density().
Definition at line 87 of file hydro_iact.h.
const float mi = pi->mass |
Definition at line 72 of file hydro_iact.h.
const float mj = pj->mass |
Definition at line 73 of file hydro_iact.h.
Referenced by swift2::kernels::legacy::density_kernel().
const float const float const float struct part* restrict pi |
Definition at line 55 of file hydro_iact.h.
Definition at line 55 of file hydro_iact.h.
Referenced by do_density(), and do_density().
const float r = sqrtf(r2) |
Definition at line 68 of file hydro_iact.h.
Referenced by TP::TwoPunctures::bicgstab(), tbb::detail::d1::blocked_rangeNd_impl(), tbb::detail::d1::blocked_rangeNd_impl(), TP::TwoPunctures::C_To_c(), DiffuseInterface< Shortcuts, basisSize >::computeAlphaPatch(), swift2::kernels::gravity::computeGravitationalForce(), Region< dim, fp, topBoundaryInclusive >::contains(), swift2::kernels::legacy::density_kernel(), TP::TwoPunctures::Derivatives_AB3(), tbb::detail::d1::do_split(), TP::TwoPunctures::F_of_v(), swift2::kernels::legacy::force_kernel(), swift2::kernels::legacy::forceKernelWithMasking(), DiffuseInterface< Shortcuts, basisSize >::getAlpha(), Region< dim, fp, topBoundaryInclusive >::intersection(), TP::TwoPunctures::J_times_dv(), TP::TwoPunctures::JFD_times_dv(), Region< dim, fp, topBoundaryInclusive >::operator!=(), tl::views::detail::stride_fn_base::operator()(), Region< dim, fp, topBoundaryInclusive >::operator==(), Region< dim, fp, topBoundaryInclusive >::overlaps(), Numerics::riemannSolver(), Numerics::riemannSolver_BC0(), Numerics::riemannSolver_BCn(), Numerics::riemannSolver_boundary(), Numerics::riemannSolver_boundary(), TP::TwoPunctures::rx3_To_xyz(), TP::TwoPunctures::set_initial_guess(), and Region< dim, fp, topBoundaryInclusive >::sharesBoundary().
Definition at line 69 of file hydro_iact.h.
Referenced by swift2::kernels::gravity::computeGravitationalForce(), swift2::kernels::legacy::density_kernel(), swift2::kernels::legacy::force_kernel(), swift2::kernels::legacy::forceKernelWithMasking(), and TP::TwoPunctures::rx3_To_xyz().
pi rho = mj * wi |
Definition at line 80 of file hydro_iact.h.
Referenced by applications::exahype2::euler::sphericalaccretion::SSInfall::add_mass(), TP::TwoPunctures::bicgstab(), Numerics::compute_parameters(), Numerics::compute_parameters(), EasiScen< Shortcuts, basisSize >::initUnknownsPointwise(), GaussianWave< Variables, basisSize >::initUnknownsPointwise(), WholeSpaceProblem< VariableShortcuts, basisSize >::initUnknownsPointwise(), Zugspitze< Shortcuts, basisSize >::initUnknownsPointwise(), Zugspitze_noTopo< Shortcuts, basisSize >::initUnknownsPointwise(), main(), Numerics::right_eigenvectors(), Numerics::right_eigenvectors_inverse(), and applications::exahype2::euler::selfgravitation::Poisson::sourceTerm().
Definition at line 81 of file hydro_iact.h.
Definition at line 116 of file hydro_iact.h.
Definition at line 77 of file hydro_iact.h.
Definition at line 88 of file hydro_iact.h.
pi density wcount = wi |
Definition at line 82 of file hydro_iact.h.
Referenced by swift2::kernels::legacy::hydro_update_smoothing_length_and_rerun_if_required().
pi density wcount_dh = (hydro_dimension * wi + ui * wi_dx) |
Definition at line 83 of file hydro_iact.h.