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
14 template <MInt nDim>
15 friend class LPT;
16
17 public:
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
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
36};
37
38#endif
std::complex< MFloat > c_cbrt(std::complex< MFloat >)
void norm(MFloat *vec, MFloat *nvec)
void crossP(MFloat *x, MFloat *y, MFloat *z)
MFloat dotP(MFloat *Vec1, MFloat *Vec2)
MFloat distance2d(MFloat, MFloat, MFloat, MFloat, MFloat, MFloat)
Definition: lpt.h:82
double MFloat
Definition: maiatypes.h:52
define array structures