Peano
Loading...
Searching...
No Matches
FixedBoundary.h
Go to the documentation of this file.
1// This file is part of the SWIFT2 project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "tarch/la/Vector.h"
7
8namespace swift2 {
9 namespace boundaryconditions {
23 template <typename Particle>
25 Particle& particle,
27 const tarch::la::Vector<Dimensions, double>& domainOffset,
29 double relativeDomainHalo,
30 int treeId
31 );
32
65 std::pair< tarch::la::Vector<Dimensions, double>, tarch::la::Vector<Dimensions, double> > getUpdateDueToFixedBoundaryCondition(
68 double maxV,
69 double maxDt,
70 double h,
71 const tarch::la::Vector<Dimensions, double>& domainOffset,
73 double relativeDomainHalo
74 );
75 }
76}
77
78#include "FixedBoundary.cpph"
std::pair< tarch::la::Vector< Dimensions, double >, tarch::la::Vector< Dimensions, double > > getUpdateDueToFixedBoundaryCondition(const tarch::la::Vector< Dimensions, double > &particleX, const tarch::la::Vector< Dimensions, double > &particleV, double maxV, double maxDt, double h, const tarch::la::Vector< Dimensions, double > &domainOffset, const tarch::la::Vector< Dimensions, double > &domainSize, double relativeDomainHalo)
Determine updated position and velocity due to boundary conditions.
void applyFixedBoundaryCondition(Particle &particle, const peano4::datamanagement::VertexMarker &marker, const tarch::la::Vector< Dimensions, double > &domainOffset, const tarch::la::Vector< Dimensions, double > &domainSize, double relativeDomainHalo, int treeId)
Apply fixed boundary conditions to particle.
This file is part of the SWIFT 2 project.
Vertex marker to provide information about selected vertex.
Simple vector class.
Definition Vector.h:159