Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LeVeque_flow Class Reference

#include <speeds.h>

Inheritance diagram for LeVeque_flow:
Collaboration diagram for LeVeque_flow:

Public Member Functions

 LeVeque_flow (double T=3)
 
virtual ~LeVeque_flow ()
 
Vector_3 get_velocity (const Point_3 &p, double t) const
 
- Public Member Functions inherited from Speed
 Speed ()
 
virtual ~Speed ()
 

Protected Member Functions

double square (double x) const
 

Protected Attributes

double _t
 

Detailed Description

Definition at line 95 of file speeds.h.

Constructor & Destructor Documentation

LeVeque_flow ( double  T = 3)
inlineexplicit

Definition at line 98 of file speeds.h.

98 : _t(T) {}
double _t
Definition: speeds.h:118
virtual ~LeVeque_flow ( )
inlinevirtual

Definition at line 99 of file speeds.h.

99 {}

Member Function Documentation

Vector_3 get_velocity ( const Point_3 p,
double  t 
) const
inlinevirtual

Reimplemented from Speed.

Definition at line 101 of file speeds.h.

References _t, cos, pi, s, sin, square(), and v.

101  {
102  const double pi = 3.14159265358979;
103 
104  Vector_3 v;
105  v[0] = 2*square(std::sin(pi*p[0]))*std::sin(2*pi*p[1])*std::sin(2*pi*p[2]);
106  v[1] = -std::sin(2*pi*p[0])*square(std::sin(pi*p[1]))*std::sin(2*pi*p[2]);
107  v[2] = -std::sin(2*pi*p[0])*std::sin(2*pi*p[1])*square(std::sin(pi*p[2]));
108 
109  double s;
110  if ( _t<0) s = std::cos(pi*(0.5-t/_t));
111  else s = std::cos(pi*t/_t);
112 
113  return (v *= s);
114  }
double s
Definition: blastest.C:80
double square(double x) const
Definition: speeds.h:117
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
Definition: roccomf90.h:20
NT & sin
const double pi
Some basic geometric data types.
Definition: mapbasic.h:54
double _t
Definition: speeds.h:118
NT & cos

Here is the call graph for this function:

double square ( double  x) const
inlineprotected

Definition at line 117 of file speeds.h.

References x.

Referenced by get_velocity().

117 { return x*x; }
void int int REAL * x
Definition: read.cpp:74

Here is the caller graph for this function:

Member Data Documentation

double _t
protected

Definition at line 118 of file speeds.h.

Referenced by get_velocity().


The documentation for this class was generated from the following file: