CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
Loading...
Searching...
No Matches
panel.h
Go to the documentation of this file.
1/*********************************************************************/
2/* */
3/* Panukl package - (C) TGG 2002 */
4/* Config files library - (C) TGG 2015 */
5/* */
6/*********************************************************************/
7/* Warszawa, 2011 */
8/*********************************************************************/
9/* */
10/* File: panel.h */
11/* */
12/* Author: T.Grabowski */
13/* */
14/* Contents - PANEL class - declaration */
15/* */
16/* Last update: 6.04.2020 */
17/* */
18/*********************************************************************/
19/* */
20
25#ifndef _PANEL_H_
26#define _PANEL_H_
27
28#include <cstring>
29#include <stdio.h>
30#include "vector3d.h"
31
33
34class PANEL
35{
36 public:
37
38 PANEL( void );
39 PANEL( VECTOR_3D vP1, VECTOR_3D vP2, VECTOR_3D vP3, VECTOR_3D vP4 );
40 ~PANEL( void );
41
42 char ElSet[256];
43
44 int Type;
45
46 int IdP1;
47 int IdP2;
48 int IdP3;
49 int IdP4;
50
51 int IdP5;
52 int IdP6;
53 int IdP7;
54 int IdP8;
55
60
62
64 double S( void );
65 void Center( void );
66
67 void PutTo ( VECTOR_3D vP1, VECTOR_3D vP2, VECTOR_3D vP3, VECTOR_3D vP4 );
68 void PutTo_n( VECTOR_3D vP1, VECTOR_3D vP2, VECTOR_3D vP3, VECTOR_3D vP4 );
69 void PutTo_0( VECTOR_3D vP1, VECTOR_3D vP2, VECTOR_3D vP3, VECTOR_3D vP4 );
70 void Mirror( void );
71
72 void Clear( void );
73
74 void Vout( FILE* ff );
75 void VoutR( FILE* ff );
76
77 void Iout( FILE *ff );
78
79 void ELset(const char *WingFus, char *Struct, int StructNr);
80 void CheckType( void );
81};
82
83#endif /*_PANEL_H_*/
84
A class for manipulating the rectangular panel.
Definition panel.h:35
double S(void)
returns the panel area
Definition panel.cpp:96
int IdP3
No. of the 3rd corner of the panel.
Definition panel.h:48
void Vout(FILE *ff)
prints corners coordinates to stream ff
Definition panel.cpp:109
void Center(void)
calculates the coordinates (Pc) of the central point of the panel
Definition panel.cpp:104
int IdP2
No. of the 2nd corner of the panel.
Definition panel.h:47
VECTOR_3D P2
the coordinates of the 2nd corner of the panel
Definition panel.h:57
int IdP4
No. of the 4th corner of the panel.
Definition panel.h:49
VECTOR_3D P3
the coordinates of the 3rd corner of the panel
Definition panel.h:58
PANEL(void)
default constructor
Definition panel.cpp:23
void Mirror(void)
makes a mirror with respect to xz plane, saves the order (CW or CCW) of corners
Definition panel.cpp:84
VECTOR_3D P4
the coordinates of the 4th corner of the panel
Definition panel.h:59
int IdP1
No. of the 1st corner of the panel.
Definition panel.h:46
void CheckType(void)
checks the type of panel
Definition panel.cpp:135
void Iout(FILE *ff)
prints corners numbers to stream ff
Definition panel.cpp:117
void PutTo(VECTOR_3D vP1, VECTOR_3D vP2, VECTOR_3D vP3, VECTOR_3D vP4)
sets the corners (coordinates)
Definition panel.cpp:55
int IdP6
No. of the mid-point of the 2nd side of the panel.
Definition panel.h:52
int IdP8
No. of the mid-point of the 4th side of the panel.
Definition panel.h:54
void ELset(const char *WingFus, char *Struct, int StructNr)
sets panel info for FEM analysis to string ELSet
Definition panel.cpp:130
VECTOR_3D Pc
the coordinates of the central point of the panel
Definition panel.h:61
VECTOR_3D * PP[4]
pointers to four corners (VECTOR_3D) of the panel
Definition panel.h:63
char ElSet[256]
info for FEM analysis
Definition panel.h:42
void Clear(void)
clears and assignes pointers to corners
Definition panel.cpp:39
int IdP7
No. of the mid-point of the 3rd side of the panel.
Definition panel.h:53
void PutTo_n(VECTOR_3D vP1, VECTOR_3D vP2, VECTOR_3D vP3, VECTOR_3D vP4)
sets the corners (ccordinates) and changes the sign of y coordinate
Definition panel.cpp:64
int IdP5
No. of the mid-point of the 1st side of the panel.
Definition panel.h:51
VECTOR_3D P1
the coordinates of the 1st corner of the panel
Definition panel.h:56
void PutTo_0(VECTOR_3D vP1, VECTOR_3D vP2, VECTOR_3D vP3, VECTOR_3D vP4)
sets the corners (ccordinates) and changes the coordinate to zero
Definition panel.cpp:74
void VoutR(FILE *ff)
prints corners mirror (with respect to xz plane) coordinates to stream ff
Definition panel.cpp:122
int Type
type of panel: 0 - rectangle; 2, 3, 4 - triangle ( corner no. Type is doubled )
Definition panel.h:44
Vector 3D class - vector manipulation.
Definition vector3d.h:34
Vector 3D class and functions.