MAIA
bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
lptellipsoiddistance.h
Go to the documentation of this file.
1
// Copyright (C) 2024 The m-AIA AUTHORS
2
//
3
// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4
//
5
// SPDX-License-Identifier: LGPL-3.0-only
6
7
#ifndef ELLIPSOIDS_H_
8
#define ELLIPSOIDS_H_
9
10
#include <complex>
11
#include "
INCLUDE/maiatypes.h
"
12
13
class
EllipsoidDistance
{
14
template
<MInt nDim>
15
friend
class
LPT
;
16
17
public
:
18
EllipsoidDistance
(
MFloat
di
[3],
MFloat
l1i
[3],
MFloat
m1i
[3],
MFloat
n1i
[3],
MFloat
l2i
[3],
MFloat
m2i
[3],
19
MFloat
n2i
[3],
MFloat
a1
,
MFloat
b1
,
MFloat
c1
,
MFloat
a2
,
MFloat
b2
,
MFloat
c2
);
20
void
crossP
(
MFloat
* x,
MFloat
*
y
,
MFloat
* z);
//
21
void
norm
(
MFloat
* vec,
MFloat
* nvec);
//
22
MFloat
mag
(
MFloat
* V);
//
23
MFloat
dotP
(
MFloat
* Vec1,
MFloat
* Vec2);
// Functions
24
MFloat
plane_int
(
MFloat
);
//
25
MFloat
distance2d
(
MFloat
,
MFloat
,
MFloat
,
MFloat
,
MFloat
,
MFloat
);
//
26
std::complex<MFloat>
c_cbrt
(std::complex<MFloat>);
//
27
MFloat
ellipsoids
(
void
);
28
MFloat
l1i
[3],
l2i
[3],
m1i
[3],
m2i
[3],
n1i
[3],
n2i
[3],
di
[3];
// Input vectors
29
MFloat
a1
,
a2
,
b1
,
b2
,
c1
,
c2
;
// Input semiaxes lenghts
30
MFloat
d
[3],
p0
[3],
p
[3],
s
[3],
l1
[3],
l2
[3],
m1
[3],
m2
[3],
n1
[3],
n2
[3],
dxp0
[3];
// Normalized vectors
31
MFloat
pi
;
32
MFloat
gratio
;
33
MFloat
o1g
;
34
MFloat
tolerance
;
35
MFloat
delt
;
36
};
37
38
#endif
EllipsoidDistance
Definition:
lptellipsoiddistance.h:13
EllipsoidDistance::m2i
MFloat m2i[3]
Definition:
lptellipsoiddistance.h:28
EllipsoidDistance::m2
MFloat m2[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::c1
MFloat c1
Definition:
lptellipsoiddistance.h:29
EllipsoidDistance::p
MFloat p[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::l2i
MFloat l2i[3]
Definition:
lptellipsoiddistance.h:28
EllipsoidDistance::ellipsoids
MFloat ellipsoids(void)
Definition:
lptellipsoiddistance.cpp:44
EllipsoidDistance::l1i
MFloat l1i[3]
Definition:
lptellipsoiddistance.h:28
EllipsoidDistance::d
MFloat d[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::a1
MFloat a1
Definition:
lptellipsoiddistance.h:29
EllipsoidDistance::c_cbrt
std::complex< MFloat > c_cbrt(std::complex< MFloat >)
Definition:
lptellipsoiddistance.cpp:297
EllipsoidDistance::m1i
MFloat m1i[3]
Definition:
lptellipsoiddistance.h:28
EllipsoidDistance::n2
MFloat n2[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::pi
MFloat pi
Definition:
lptellipsoiddistance.h:31
EllipsoidDistance::o1g
MFloat o1g
Definition:
lptellipsoiddistance.h:33
EllipsoidDistance::norm
void norm(MFloat *vec, MFloat *nvec)
Definition:
lptellipsoiddistance.cpp:135
EllipsoidDistance::crossP
void crossP(MFloat *x, MFloat *y, MFloat *z)
Definition:
lptellipsoiddistance.cpp:125
EllipsoidDistance::mag
MFloat mag(MFloat *V)
Definition:
lptellipsoiddistance.cpp:153
EllipsoidDistance::dxp0
MFloat dxp0[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::gratio
MFloat gratio
Definition:
lptellipsoiddistance.h:32
EllipsoidDistance::dotP
MFloat dotP(MFloat *Vec1, MFloat *Vec2)
Definition:
lptellipsoiddistance.cpp:157
EllipsoidDistance::a2
MFloat a2
Definition:
lptellipsoiddistance.h:29
EllipsoidDistance::plane_int
MFloat plane_int(MFloat)
Definition:
lptellipsoiddistance.cpp:163
EllipsoidDistance::tolerance
MFloat tolerance
Definition:
lptellipsoiddistance.h:34
EllipsoidDistance::s
MFloat s[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::b1
MFloat b1
Definition:
lptellipsoiddistance.h:29
EllipsoidDistance::b2
MFloat b2
Definition:
lptellipsoiddistance.h:29
EllipsoidDistance::delt
MFloat delt
Definition:
lptellipsoiddistance.h:35
EllipsoidDistance::l2
MFloat l2[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::m1
MFloat m1[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::distance2d
MFloat distance2d(MFloat, MFloat, MFloat, MFloat, MFloat, MFloat)
Definition:
lptellipsoiddistance.cpp:209
EllipsoidDistance::n1
MFloat n1[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::n2i
MFloat n2i[3]
Definition:
lptellipsoiddistance.h:28
EllipsoidDistance::di
MFloat di[3]
Definition:
lptellipsoiddistance.h:28
EllipsoidDistance::c2
MFloat c2
Definition:
lptellipsoiddistance.h:29
EllipsoidDistance::p0
MFloat p0[3]
Definition:
lptellipsoiddistance.h:30
EllipsoidDistance::n1i
MFloat n1i[3]
Definition:
lptellipsoiddistance.h:28
EllipsoidDistance::l1
MFloat l1[3]
Definition:
lptellipsoiddistance.h:30
LPT
Definition:
lpt.h:82
maiatypes.h
MFloat
double MFloat
Definition:
maiatypes.h:52
y
define array structures
Definition:
geometrycontexttypes.h:14
home
gitlab-runner
scratch
builds
oxpnswJ6
1
aia
m-AIA
m-AIA
src
LPT
lptellipsoiddistance.h
Generated on Sun Jun 16 2024 23:45:03 for MAIA by
1.9.5