|
| WarpedCubeDomain () |
| Constructor: More...
|
|
| WarpedCubeDomain (const WarpedCubeDomain &)=delete |
| Broken copy constructor. More...
|
|
void | operator= (const WarpedCubeDomain &)=delete |
| Broken assignment operator. More...
|
|
| ~WarpedCubeDomain () |
| Destructor (empty; clean up handled in base class) More...
|
|
void | warp_it (Vector< double > &f) |
| Warp the unit cube. More...
|
|
void | macro_element_boundary (const unsigned &t, const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
Public Member Functions inherited from oomph::Domain |
| Domain () |
| Constructor. More...
|
|
| Domain (const Domain &)=delete |
| Broken copy constructor. More...
|
|
void | operator= (const Domain &)=delete |
| Broken assignment operator. More...
|
|
virtual | ~Domain () |
|
MacroElement * | macro_element_pt (const unsigned &i) |
| Access to i-th macro element. More...
|
|
unsigned | nmacro_element () |
| Number of macro elements in domain. More...
|
|
void | output (const std::string &filename, const unsigned &nplot) |
| Output macro elements. More...
|
|
void | output (std::ostream &outfile, const unsigned &nplot) |
| Output macro elements. More...
|
|
virtual void | macro_element_boundary (const double &t, const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
void | macro_element_boundary (const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
void | output_macro_element_boundaries (const std::string &filename, const unsigned &nplot) |
| Output all macro element boundaries as tecplot zones. More...
|
|
void | output_macro_element_boundaries (std::ostream &outfile, const unsigned &nplot) |
| Output all macro element boundaries as tecplot zones. More...
|
|
virtual void | dmacro_element_boundary (const unsigned &t, const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
virtual void | dmacro_element_boundary (const double &t, const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
void | dmacro_element_boundary (const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
virtual void | d2macro_element_boundary (const unsigned &t, const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
virtual void | d2macro_element_boundary (const double &t, const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
void | d2macro_element_boundary (const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &f) |
|
////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// Warped cube as domain which is parametrised by a single macro element
Vector representation of the i_macro-th macro element boundary i_direct (L/R/D/U/B/F) at time level t (t=0: present; t>0: previous): f(s).
////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// Vector representation of the imacro-th macro element boundary idirect (L/R/D/B/F) at time level t (t=0: present; t>0: previous): f(s)
Implements oomph::Domain.
53 using namespace OcTreeNames;
55 #ifdef WARN_ABOUT_SUBTLY_CHANGED_OOMPH_INTERFACES
58 "Order of function arguments has changed between versions 0.8 and 0.85",
59 "WarpedCubeDomain::macro_element_boundary(...)",
68 else if (idirect ==
R)
72 else if (idirect ==
D)
76 else if (idirect ==
U)
80 else if (idirect ==
B)
84 else if (idirect ==
F)
90 std::ostringstream error_stream;
91 error_stream <<
"idirect is " << idirect <<
" not one of U, D, L, R, B, F"
dominoes D
Definition: Domino.cpp:55
MatrixXd L
Definition: LLT_example.cpp:6
@ R
Definition: StatisticsVector.h:21
Definition: matrices.h:74
void r_U(const unsigned &t, const Vector< double > &zeta, Vector< double > &f)
Definition: domain.cc:159
void r_R(const unsigned &t, const Vector< double > &zeta, Vector< double > &f)
Definition: domain.cc:125
void r_F(const unsigned &t, const Vector< double > &zeta, Vector< double > &f)
Definition: domain.cc:194
void r_L(const unsigned &t, const Vector< double > &zeta, Vector< double > &f)
Definition: domain.cc:107
void r_D(const unsigned &t, const Vector< double > &zeta, Vector< double > &f)
Definition: domain.cc:142
void r_B(const unsigned &t, const Vector< double > &zeta, Vector< double > &f)
Definition: domain.cc:177
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
Definition: cxx11_tensor_map.cpp:237
RealScalar s
Definition: level1_cplx_impl.h:130
double U
Swimming speed.
Definition: two_d_variable_diff_adapt.cc:53
@ F
Definition: octree.h:74
t
Definition: plotPSD.py:36
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86
References D, f(), oomph::OcTreeNames::F, L, OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, R, r_B(), r_D(), r_F(), r_L(), r_R(), r_U(), s, plotPSD::t, and RachelsAdvectionDiffusion::U.
void oomph::WarpedCubeDomain::warp_it |
( |
Vector< double > & |
f | ) |
|
Warp the unit cube.
212 Vector<double> f_aux(
f);
213 double x = 0.5 * (1.0 + f_aux[0]);
214 double y = 0.5 * (1.0 + f_aux[1]);
215 double z = 0.5 * (1.0 + f_aux[2]);
216 f[0] = (1.0 +
x) *
cos(
y + 0.5 * z);
217 f[1] = (2.0 + 3 *
x) *
sin(
y + 0.5 * z);
218 f[2] =
sin(z) + 0.1 * (
x *
x +
y *
y);
AnnoyingScalar cos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:136
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137
Scalar * y
Definition: level1_cplx_impl.h:128
list x
Definition: plotDoE.py:28
References cos(), f(), sin(), plotDoE::x, and y.
Referenced by r_B(), r_D(), r_F(), r_L(), r_R(), and r_U().