FEMTIC
Forward2DSquareElement1stOrderEdgeBased.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_1ST_ORDER_EDGE_BASED
25 #define DBLDEF_FORWARD_2D_SQUARE_ELEMENT_1ST_ORDER_EDGE_BASED
26 
27 #include "MeshDataBrickElement.h"
29 
30 // Class of 2D forward calculation by using 1st order edge element with square shape
32 
33 public:
34 
35  // Constructer
36  explicit Forward2DSquareElement1stOrderEdgeBased( 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 1st order edge-based elements
56  inline double getShapeFuncHorizontal1stOrderEdgeBased( const double wLocal, const double hLocal, const int num ) const;
57 
58  // Get shape functions of vertical direction for 1st order edge-based elements
59  inline double getShapeFuncVertical1stOrderEdgeBased( const double wLocal, const double hLocal, const int num ) const;
60 
61  // Get shape functions rotated for 1st order edge-based elements
62  inline double getShapeFuncRotated1stOrderEdgeBased( const double wLocal, const double hLocal, const double width, const double height, const int num ) const;
63 
64  // Calculate horizontal electric field values for 1st 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 1st order edge-based elements
68  virtual std::complex<double> calcValueElectricFieldVertical( const int iElem, const double wLocal, const double hLocal ) const;
69 
70  // Calculate magnetic field values for 1st order edge-based elements
71  virtual std::complex<double> calcValueMagneticFieldPerpendicular( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
72 
73  // Calculate parameter V of Rodi(1976)
74  virtual std::complex<double> calcValueV( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
75 
76  // Calculate parameter J of Rodi(1976)
77  virtual std::complex<double> calcValueJ( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
78 
79  // Calculate parameter I of Rodi(1976)
80  virtual std::complex<double> calcValueI( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
81 
82 
83 };
84 
85 #endif
Definition: Forward2DSquareElement1stOrderEdgeBased.h:31
Forward2DSquareElement1stOrderEdgeBased(const Forward2DSquareElement1stOrderEdgeBased &rhs)
virtual std::complex< double > calcValueV(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:720
virtual std::complex< double > calcValueElectricFieldHorizontal(const int iElem, const double wLocal, const double hLocal) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:637
virtual void calcEMFieldsOfBoundaryPlanes(const double freq, const MeshDataBrickElement *const pMeshDataBrickElement)
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:46
double getShapeFuncRotated1stOrderEdgeBased(const double wLocal, const double hLocal, const double width, const double height, const int num) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:582
Forward2DSquareElement1stOrderEdgeBased & operator=(const Forward2DSquareElement1stOrderEdgeBased &rhs)
double getShapeFuncHorizontal1stOrderEdgeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:482
virtual std::complex< double > calcValueElectricFieldVertical(const int iElem, const double wLocal, const double hLocal) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:663
~Forward2DSquareElement1stOrderEdgeBased()
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:42
virtual std::complex< double > calcValueJ(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:725
virtual std::complex< double > calcValueI(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:730
double getShapeFuncVertical1stOrderEdgeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:531
virtual std::complex< double > calcValueMagneticFieldPerpendicular(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderEdgeBased.cpp:690
Definition: Forward2DSquareElementEdgeBased.h:31
Definition: MeshDataBrickElement.h:31