FEMTIC
Forward2DSquareElement1stOrderNodeBased.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_NODE_BASED
25 #define DBLDEF_FORWARD_2D_SQUARE_ELEMENT_1ST_ORDER_NODE_BASED
26 
27 #include "MeshDataBrickElement.h"
29 
30 // Class of 2D forward calculation by using 1st order node element with square shape
32 
33 public:
34 
35  // Constructer
36  explicit Forward2DSquareElement1stOrderNodeBased( 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 
45  //virtual std::complex<double> getElectricFieldPerpendicularToPlane( const int iElem, const double wLocal, const double hLocal ) const;
46 
47 private:
48 
49  // Defailt constructer
51 
52  // Copy constructer
54 
55  // Copy assignment operator
57 
58  // Get shape functions for 1st order node-based elements
59  inline double getShapeFunc1stOrderNodeBased( const double wLocal, const double hLocal, const int num ) const;
60 
61  // Get shape functions defferentiated by local coordinate of w for 1st order node-based elements
62  inline double getShapeFuncDiffByWLocal1stOrderNodeBased( const double wLocal, const double hLocal, const int num ) const;
63 
64  // Get shape functions defferentiated by local coordinate of h for 1st order node-based elements
65  inline double getShapeFuncDiffByHLocal1stOrderNodeBased( const double wLocal, const double hLocal, const int num ) const;
66 
68  //std::complex<double> calcValueV1stOrder( const int iElem, const double wLocal, const double hLocal ) const;
69 
71  //std::complex<double> calcValueJ1stOrder( const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
72 
74  //std::complex<double> calcValueI1stOrder( const double freq, const int iElem, const double wLocal, const double hLocal, 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  // Calculate electric field perpendicular to the boundary plane
86  virtual std::complex<double> calcValueElectricFieldPerpendicular( const int iElem, const double wCoord, const double hCoord ) const;
87 
88  // Calculate horizontal magnetic field
89  virtual std::complex<double> calcValueMagneticFieldHorizontal( const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
90 
91  // Calculate vertical magnetic field
92  virtual std::complex<double> calcValueMagneticFieldVertical( const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement* const pMeshDataBrickElement ) const;
93 
94 };
95 
96 #endif
Definition: Forward2DSquareElement1stOrderNodeBased.h:31
virtual std::complex< double > calcValueV(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:989
virtual std::complex< double > calcValueI(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:999
virtual std::complex< double > calcValueMagneticFieldHorizontal(const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:1025
virtual std::complex< double > calcValueElectricFieldPerpendicular(const int iElem, const double wCoord, const double hCoord) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:1004
double getShapeFunc1stOrderNodeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:830
~Forward2DSquareElement1stOrderNodeBased()
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:42
virtual void calcEMFieldsOfBoundaryPlanes(const double freq, const MeshDataBrickElement *const pMeshDataBrickElement)
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:46
double getShapeFuncDiffByWLocal1stOrderNodeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:854
virtual std::complex< double > calcValueJ(const double freq, const int iElem, const double wLocal, const double hLocal, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:994
double getShapeFuncDiffByHLocal1stOrderNodeBased(const double wLocal, const double hLocal, const int num) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:878
Forward2DSquareElement1stOrderNodeBased(const Forward2DSquareElement1stOrderNodeBased &rhs)
Forward2DSquareElement1stOrderNodeBased & operator=(const Forward2DSquareElement1stOrderNodeBased &rhs)
virtual std::complex< double > calcValueMagneticFieldVertical(const double freq, const int iElem, const double wCoord, const double hCoord, const MeshDataBrickElement *const pMeshDataBrickElement) const
Definition: Forward2DSquareElement1stOrderNodeBased.cpp:1053
Definition: Forward2DSquareElementNodeBased.h:31
Definition: MeshDataBrickElement.h:31