TexGen
Core
PropertiesTextile.h
Go to the documentation of this file.
1
/*=============================================================================
2
TexGen: Geometric textile modeller.
3
Copyright (C) 2006 Martin Sherburn
4
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
as published by the Free Software Foundation; either version 2
8
of the License, or (at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
=============================================================================*/
19
20
#pragma once
21
22
#include "
Properties.h
"
23
24
namespace
TexGen
25
{
26
using namespace
std;
27
29
36
class
CLASS_DECLSPEC
CPropertiesTextile
:
public
CProperties
37
{
38
public
:
39
CPropertiesTextile
();
40
CPropertiesTextile
(TiXmlElement &Element);
41
~CPropertiesTextile
(
void
);
42
44
virtual
void
PopulateTiXmlElement(TiXmlElement &Element,
OUTPUT_TYPE
OutputType);
45
47
51
bool
SetGeometryScale(
string
Units);
52
54
void
SetArealDensity(
double
dValue,
string
Units =
"kg/m^2"
);
55
56
void
ResetArealDensity
() { m_ArealDensity.Reset(); }
58
void
SetMatrixYoungsModulus(
double
dValue,
string
Units =
"MPa"
);
59
61
void
SetMatrixPoissonsRatio(
double
dValue );
62
64
void
SetMatrixAlpha(
double
dValue );
65
66
string
GetGeometryScale()
const
;
67
double
GetArealDensity(
string
Units =
"kg/m^2"
)
const
;
68
69
double
GetMatrixYoungsModulus(
string
Units =
"MPa"
)
const
;
70
double
GetMatrixPoissonsRatio()
const
;
71
double
GetMatrixAlpha()
const
;
72
73
CProperty
m_ArealDensity
;
74
CProperty
m_MatrixYoungsModulus
;
75
//CProperty m_MatrixAlpha;
76
77
protected
:
78
string
m_GeometryScale
;
79
double
m_MatrixPoissonsRatio
;
80
double
m_MatrixAlpha
;
81
83
void
SetDefaultMatrixProperties();
84
};
85
};
// namespace TexGen
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
CLASS_DECLSPEC
#define CLASS_DECLSPEC
Definition:
Misc.h:35
Properties.h
TexGen::CProperties
Class to store properties related to a textile and/or yarn.
Definition:
Properties.h:102
TexGen::CPropertiesTextile
Class to store properties related to a textile.
Definition:
PropertiesTextile.h:37
TexGen::CPropertiesTextile::ResetArealDensity
void ResetArealDensity()
Definition:
PropertiesTextile.h:56
TexGen::CPropertiesTextile::m_MatrixYoungsModulus
CProperty m_MatrixYoungsModulus
Definition:
PropertiesTextile.h:74
TexGen::CPropertiesTextile::m_MatrixPoissonsRatio
double m_MatrixPoissonsRatio
Definition:
PropertiesTextile.h:79
TexGen::CPropertiesTextile::m_ArealDensity
CProperty m_ArealDensity
Definition:
PropertiesTextile.h:73
TexGen::CPropertiesTextile::m_GeometryScale
string m_GeometryScale
Definition:
PropertiesTextile.h:78
TexGen::CPropertiesTextile::m_MatrixAlpha
double m_MatrixAlpha
Definition:
PropertiesTextile.h:80
TexGen::CProperty
Definition:
Property.h:27
TexGen
Namespace containing a series of customised math operations not found in the standard c++ library.
Definition:
AdjustMeshInterference.h:27
TexGen::OUTPUT_TYPE
OUTPUT_TYPE
Definition:
Misc.h:105
Generated by
1.9.2