OpenLB 1.7
Loading...
Searching...
No Matches
hyperplane2D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2018 Adrian Kummerlaender
4 * E-mail contact: info@openlb.net
5 * The most recent release of OpenLB can be downloaded at
6 * <http://www.openlb.net/>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef HYPERPLANE_2D_H
25#define HYPERPLANE_2D_H
26
27#include "core/vector.h"
28#include "geometry/cuboid2D.h"
29
30namespace olb {
31
33
36template <typename T>
62
63}
64
65#endif
A regular single 2D cuboid is the basic component of a 2D cuboid structure which defines the grid.
Definition cuboid2D.h:54
Plain old scalar vector.
Definition vector.h:47
The description of a single 2D cuboid – header file.
Top level namespace for all of OpenLB.
Definition of a analytical line embedded in 2D space.
Hyperplane2D & parallelTo(const Vector< T, 2 > &direction)
Set the direction of the line parallel to a vector.
Hyperplane2D()=default
Vector< T, 2 > normal
Vector< T, 2 > u
bool isParallelToY() const
Hyperplane2D & centeredIn(const Cuboid2D< T > &cuboid)
Center the line relative to the given cuboid.
Hyperplane2D & originAt(const Vector< T, 2 > &origin)
Center the line at the given origin vector.
Vector< T, 2 > origin
bool isParallelToX() const
Hyperplane2D & normalTo(const Vector< T, 2 > &normal)
Calculate the direction vector of the line to be orthogonal to the given normal.
efficient implementation of a vector class