53
53
typedef StressTensorCollection<ContactPtTensorCalculator> StressTensorCollection;
54
54
typedef StressTensorCollection::StressCalculator StressTensorCalculator;
56
InteractionToStressConverter(double stdDeviation=0.4);
56
InteractionToStressConverter(const BoundingBox &box, double gridSpacing);
59
59
* Reads RAW2 interaction data from the specified stream and converts
71
71
* Writes VTK StructuredGrid XML format file of
72
72
* eigenvalue point-data to the specified output-stream.
73
73
* The irregular point data
74
* is converted to a regular grid specified by
75
* bBox and gridSpacing parameters.
74
* is converted to a regular grid using the
75
* bounding-box and grid-spacing values of this object.
77
* @param oStream vtx xml written to this stream.
79
* @see getDevRegularGrid
79
void writeVtkStructuredXml
81
std::ostream &oStream,
82
const BoundingBox &bBox,
81
void writeVtkStructuredXml(std::ostream &oStream);
88
* Converts irregular grid of (\sigma_{max}-\sigma_{min})
89
* calculated from tensor data to a regular grid using
90
* a Gaussian (normal distribution) weighting/smoothing.
92
* @param bBox - regular grid is restricted to this bounding box
93
* (all irregular point data are considered even if
94
* they are outside this bounding box.
95
* @param gridSpacing - distance between regular grid points
96
* (x, y and z dimensions).
97
* @param stdDeviation - standard deviation value for the Gaussian
98
* weight calculations.
100
DoubleGrid getDevRegularGrid
102
const BoundingBox &bBox,
83
StressTensorPtrGrid &getTensorIrregularGrid();
84
void calcTensorIrregularGrid();
109
87
* Converts irregular grid of average particle stress tensors (\sigma_{ij})
115
93
* @param gridSpacing - distance between regular grid points
116
94
* (x, y and z dimensions).
118
TensorGrid getTensorRegularGrid
120
const BoundingBox &bBox,
96
TensorGrid &getTensorRegularGrid();
98
void calcTensorRegularGrid();
125
101
* Converts irregular grid of average particle stress tensor data
133
109
* @param gridSpacing - distance between regular grid points
134
110
* (x, y and z dimensions).
136
DoubleGrid getDevRegularGrid
138
const BoundingBox &bBox,
112
DoubleGrid &getDevRegularGrid();
114
void calcDevRegularGrid();
143
117
* Writes "x y z \sigma_{max}-\sigma_{min})" records
176
145
void writeUnstructuredDx(std::ostream &oStream);
147
double getMaxRadius();
179
150
double getRealDevStress(const Tensor &stressTensor) const;
180
151
double getNormDevStress(const Tensor &stressTensor) const;
182
153
bool is3d() const;
156
double m_gridSpacing;
185
158
StressTensorCalculator m_stressCalculator;
186
159
StressTensorCollection m_stressTensorCollection;
187
double m_stdDeviation;
160
TensorGrid m_regTensorGrid;
161
DoubleGrid m_regDevStressGrid;
162
StressTensorPtrGrid m_irrStressTensorGrid;