FEMTIC
Forward2DSquareElement0thOrderEdgeBased.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------------------------------------------
2 // The MIT License (MIT)
3 //
4 // Copyright (c) 2021 Yoshiya Usui
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to deal
8 // in the Software without restriction, including without limitation the rights
9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 // copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
13 // The above copyright notice and this permission notice shall be included in all
14 // copies or substantial portions of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 // SOFTWARE.
23 //-------------------------------------------------------------------------------------------------------
24 #ifndef DBLDEF_FORWARD_2D_SQUARE_ELEMENT_0TH_ORDER_EDGE_BASED
25 #define DBLDEF_FORWARD_2D_SQUARE_ELEMENT_0TH_ORDER_EDGE_BASED
26 
27 #include "MeshDataBrickElement.h"
29 
30 // Class of 2D forward calculation by using 0th order edge element with square shape
32 
33 public:
34 
35  // Constructer
36  explicit Forward2DSquareElement0thOrderEdgeBased( const int planeID, const int iPol );
37 
38  // Destructer
40 
41  // Calculate EM fields of boundary planes by 2D forward calculcation
42  virtual void calcEMFieldsOfBoundaryPlanes( const double freq, const MeshDataBrickElement* const pMeshDataBrickElement );
43 
44 private:
45 
46  // Defailt constructer
48 
49  // Copy constructer
51 
52  // Copy assignment operator
54 
55  // Get shape functions of horizontal direction for 0th order edge-based elements
56  inline double getShapeFuncHorizontal0thOrderEdgeBased( const double wLocal, const double hLocal, const int num ) const;
57 
58  // Get shape functions of vertical direction for 0th order edge-based elements
59  inline double getShapeFuncVertical0thOrderEdgeBased( const double wLocal, const double hLocal, const int num ) const;
60 
61  // Get shape functions rotated for 0th order edge-based elements
62  inline double getShapeFuncRotated0thOrderEdgeBased( const double wLocal, const double hLocal, const int num ) const;
63 
64  // Calculate horizontal electric field values for 0th order edge-based elements
65  virtual std::complex<double> calcValueElectricFieldHorizontal( const int iElem, const double wLocal, const double hLocal ) const;
66 
67  // Calculate vertical electric field values for 0th order edge-based elements
68  virtual std::complex<double> calcValueElectricFieldVertical( const int iElem, const double wLocal, const double hLocal ) const;
69 
71  //std::complex<double> calcValueMagneticField( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
72 
73  // Calculate magnetic field perpendicular to the boundary plane
74  virtual std::complex<double> calcValueMagneticFieldPerpendicular( const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
75 
76  // Calculate parameter V of Rodi(1976)
77  virtual std::complex<double> calcValueV( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
78 
79  // Calculate parameter J of Rodi(1976)
80  virtual std::complex<double> calcValueJ( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
81 
82  // Calculate parameter I of Rodi(1976)
83  virtual std::complex<double> calcValueI( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
84 
85 
86 };
87 
88 #endif
Definition: Forward2DSquareElement0thOrderEdgeBased.h:31
~Forward2DSquareElement0thOrderEdgeBased()
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:42
virtual std::complex< double > calcValueV(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:681
virtual std::complex< double > calcValueI(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:691
double getShapeFuncHorizontal0thOrderEdgeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:488
virtual std::complex< double > calcValueElectricFieldVertical(const int iElem, const double wLocal, const double hLocal) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:591
double getShapeFuncVertical0thOrderEdgeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:512
virtual std::complex< double > calcValueElectricFieldHorizontal(const int iElem, const double wLocal, const double hLocal) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:565
Forward2DSquareElement0thOrderEdgeBased(const Forward2DSquareElement0thOrderEdgeBased &rhs)
virtual std::complex< double > calcValueMagneticFieldPerpendicular(const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:648
virtual std::complex< double > calcValueJ(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:686
virtual void calcEMFieldsOfBoundaryPlanes(const double freq, const MeshDataBrickElement *const pMeshDataBrickElement)
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:46
Forward2DSquareElement0thOrderEdgeBased & operator=(const Forward2DSquareElement0thOrderEdgeBased &rhs)
double getShapeFuncRotated0thOrderEdgeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement0thOrderEdgeBased.cpp:536
Definition: Forward2DSquareElementEdgeBased.h:31
Definition: MeshDataBrickElement.h:31