Boundary_Items Namespace Reference

Functions

void get_exact_u_b1 (double &time, const Vector< double > &x, double &u)
 
void boundary_velocity (double &time, const Vector< double > &x, double &u)
 
void boundary_velocity (const double &time, const Vector< double > &x, double &u)
 

Function Documentation

◆ boundary_velocity() [1/2]

void Boundary_Items::boundary_velocity ( const double time,
const Vector< double > &  x,
double u 
)
70  {
71  // u assignment - spin-up problem
72  u = x[0]*(1.0 - std::exp(-100*time));
73  }
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 exp(const bfloat16 &a)
Definition: BFloat16.h:615
list x
Definition: plotDoE.py:28

References Eigen::bfloat16_impl::exp(), and plotDoE::x.

◆ boundary_velocity() [2/2]

void Boundary_Items::boundary_velocity ( double time,
const Vector< double > &  x,
double u 
)
65  {
66  //Spin-up with a "fast" exponential forcing
67  u = x[0]*sin(x[1])*(1.0 - std::exp(-100*time));
68  }
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137

References Eigen::bfloat16_impl::exp(), sin(), and plotDoE::x.

Referenced by SphericalSpinUpProblem< ELEMENT >::actions_before_implicit_timestep(), and SphericalSpinUpProblem< ELEMENT >::set_boundary_conditions().

◆ get_exact_u_b1()

void Boundary_Items::get_exact_u_b1 ( double time,
const Vector< double > &  x,
double u 
)
66  {
67  // u assignment - spin-up problem
68  u = x[0]*sin(x[1])*(1.0 - std::exp(-time));
69 
70  // u assignment - DSDJ problem
71  //u = x[0]*sin(time)*sin(x[1]);
72  }

References Eigen::bfloat16_impl::exp(), sin(), and plotDoE::x.

Referenced by RefineableSphericalSpinUpProblem< ELEMENT >::set_boundary_conditions().