RT.cpp
1 #include "RT.hpp"
2 
3 RT_velocityY::RT_velocityY()
4 {
5 }
6 
7 RT_velocityY::~RT_velocityY()
8 {
9 }
10 
11 double RT_velocityY::operator()(Vector2D const& r) const
12 {
13  return 0.0025*(1-cos(12.566370614359*r.x))*
14  (1-cos(12.566370614359*r.y/3));
15 }
16 
17 RT_Pressure::RT_Pressure(double g,double rhoup,double rhodown):
18  g_(g),
19  rhou_(rhoup),
20  rhod_(rhodown)
21 {
22  // g_=g;
23  // rhou_=rhoup;
24  // rhod_=rhodown;
25 }
26 
27 RT_Pressure::~RT_Pressure()
28 {
29 }
30 
31 double RT_Pressure::operator()(Vector2D const& r) const
32 {
33  if(r.y>0.75)
34  return 2.5+g_*(r.y-0.75)*rhou_;
35  else
36  return 2.5+g_*(r.y-0.75)*rhod_;
37 }
double operator()(const Vector2D &r) const
Evaluates the function.
Definition: RT.cpp:11
Repreduces the Vy and Pressure of the Arepo RT problem.
double y
Component in the y direction.
Definition: geometry.hpp:48
double operator()(const Vector2D &r) const
Evaluates the function.
Definition: RT.cpp:31
RT_Pressure(double g, double rhoup, double rhodown)
Class constructor.
Definition: RT.cpp:17
2D Mathematical vector
Definition: geometry.hpp:15
double x
Component in the x direction.
Definition: geometry.hpp:45