45 for (
size_t i = 0; i < 3; i++)
46 par[i] = i < U.size() ? U[i] : 0.0;
52 for (
size_t i = 0; i < 3; i++)
59 for (
size_t i = 0; i < 3; i++)
60 par[i] = 3+i < X.size() ? X[3+i] : 0.0;
72 for (
size_t i = 0; i < 3; i++)
86 for (
size_t i = 0; i < 3; i++)
99 for (
size_t i = 0; i < 3; i++)
115 value*a.
u[0], value*a.
u[1], value*a.
u[2] });
123 value*a.
u[0], value*a.
u[1], value*a.
u[2] });
131 a.
u[0]+b.
u[0], a.
u[1]+b.
u[1], a.
u[2]+b.
u[2] });
#define Real
The floating point type to use.
Definition: ImmersedBoundaries.h:18
std::vector< utl::Point > PointVec
An array of points.
Definition: Point.h:135
utl::Point operator*(const utl::Point &a, Real value)
Multiplication of a point and a scalar.
Definition: Point.h:112
utl::Point operator+(const utl::Point &a, const utl::Point &b)
Summation of two points.
Definition: Point.h:128
Representation of a point in 3D space with some basic operations.
Simple class for representing a point in 3D space.
Definition: Vec3.h:27
Real & x
Reference to X-component.
Definition: Vec3.h:31
Real & z
Reference to Z-component.
Definition: Vec3.h:33
Real & y
Reference to Y-component.
Definition: Vec3.h:32
Simple class for representing a point in 3D space and time.
Definition: Vec3.h:209
Real t
The time coordinate.
Definition: Vec3.h:213
int idx
Nodal point index.
Definition: Vec3.h:214
const Real * u
Spline parameters of point.
Definition: Vec3.h:211
Class for representing points in 3D space.
Definition: Point.h:29
Point(const std::vector< Real > &X)
Constructor creating a point from the given std::vector.
Definition: Point.h:57
Point & operator=(const Vec4 &X)
Assignment operator.
Definition: Point.h:64
Point & operator/=(Real d)
Division by a scalar.
Definition: Point.h:106
Real par[3]
Internal storage of spline parameters.
Definition: Point.h:30
Point()
Default constructor.
Definition: Point.h:34
Point & operator*=(Real c)
Multiplication with a scalar.
Definition: Point.h:93
Point(const Point &X)
Copy constructor.
Definition: Point.h:50
Point & operator+=(const Vec4 &X)
Add the given vector X to *this.
Definition: Point.h:79
Point(const Vec3 &X)
Constructor creating a point at the specified location.
Definition: Point.h:37
Point(const Vec3 &X, const std::vector< Real > &U)
Constructor creating a point at the specified location.
Definition: Point.h:43
General utility classes and functions.
Definition: SIMoptions.h:22