ViennaLS
Toggle main menu visibility
Loading...
Searching...
No Matches
lsVelocityField.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <vcVectorType.hpp>
4
5
namespace
viennals
{
6
7
using namespace
viennacore;
8
11
template
<
class
T>
class
VelocityField
{
12
public
:
13
VelocityField
() =
default
;
14
17
virtual
T
getScalarVelocity
(
const
Vec3D<T> &
/*coordinate*/
,
int
/*material*/
,
18
const
Vec3D<T> &
/*normalVector*/
,
19
unsigned
long
/*pointId*/
) {
20
return
0;
21
}
22
25
virtual
Vec3D<T>
getVectorVelocity
(
const
Vec3D<T> &
/*coordinate*/
,
26
int
/*material*/
,
27
const
Vec3D<T> &
/*normalVector*/
,
28
unsigned
long
/*pointId*/
) {
29
return
Vec3D<T>{0, 0, 0};
30
}
31
35
virtual
T
getDissipationAlpha
(
int
/*direction*/
,
int
/*material*/
,
36
const
Vec3D<T> &
/*centralDifferences*/
) {
37
return
0;
38
}
39
40
virtual
~VelocityField
() =
default
;
41
};
42
43
}
// namespace viennals
T
double T
Definition
Epitaxy.cpp:13
viennals::VelocityField::getScalarVelocity
virtual T getScalarVelocity(const Vec3D< T > &, int, const Vec3D< T > &, unsigned long)
Should return a scalar value for the velocity at coordinate for a point of material with the given no...
Definition
lsVelocityField.hpp:17
viennals::VelocityField::getDissipationAlpha
virtual T getDissipationAlpha(int, int, const Vec3D< T > &)
If lsLocalLaxFriedrichsAnalytical is used as the spatial discretization scheme, this is called to pro...
Definition
lsVelocityField.hpp:35
viennals::VelocityField::~VelocityField
virtual ~VelocityField()=default
viennals::VelocityField::getVectorVelocity
virtual Vec3D< T > getVectorVelocity(const Vec3D< T > &, int, const Vec3D< T > &, unsigned long)
Like getScalarVelocity, but returns a velocity value for each cartesian direction.
Definition
lsVelocityField.hpp:25
viennals::VelocityField::VelocityField
VelocityField()=default
viennals
Definition
lsAdvect.hpp:41
include
viennals
lsVelocityField.hpp
Generated by
1.18.0