www.mooseframework.org
Functions
SymmElasticityTensor.C File Reference

Go to the source code of this file.

Functions

template<>
void dataStore (std::ostream &stream, SymmElasticityTensor &set, void *context)
 
template<>
void dataLoad (std::istream &stream, SymmElasticityTensor &set, void *context)
 
std::ostream & operator<< (std::ostream &stream, const SymmElasticityTensor &obj)
 

Function Documentation

◆ dataLoad()

template<>
void dataLoad ( std::istream &  stream,
SymmElasticityTensor set,
void *  context 
)

Definition at line 24 of file SymmElasticityTensor.C.

25 {
26  dataLoad(stream, set._constant, context);
27  dataLoad(stream, set._values_computed, context);
28  dataLoad(stream, set._val, context);
29 }

◆ dataStore()

template<>
void dataStore ( std::ostream &  stream,
SymmElasticityTensor set,
void *  context 
)

Definition at line 15 of file SymmElasticityTensor.C.

16 {
17  dataStore(stream, set._constant, context);
18  dataStore(stream, set._values_computed, context);
19  dataStore(stream, set._val, context);
20 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const SymmElasticityTensor obj 
)

Definition at line 306 of file SymmElasticityTensor.C.

307 {
308  stream << "SymmElasticityTensor:\n"
309  << std::setprecision(6) << std::setw(13) << obj._val[0] << "\t" << std::setw(13)
310  << obj._val[1] << "\t" << std::setw(13) << obj._val[2] << "\t" << std::setw(13)
311  << obj._val[3] << "\t" << std::setw(13) << obj._val[4] << "\t" << std::setw(13)
312  << obj._val[5] << "\n"
313  << "\t\t" << std::setw(13) << obj._val[6] << "\t" << std::setw(13) << obj._val[7] << "\t"
314  << std::setw(13) << obj._val[8] << "\t" << std::setw(13) << obj._val[9] << "\t"
315  << std::setw(13) << obj._val[10] << "\n"
316  << "\t\t\t\t" << std::setw(13) << obj._val[11] << "\t" << std::setw(13) << obj._val[12]
317  << "\t" << std::setw(13) << obj._val[13] << "\t" << std::setw(13) << obj._val[14] << "\n"
318  << "\t\t\t\t\t\t" << std::setw(13) << obj._val[15] << "\t" << std::setw(13) << obj._val[16]
319  << "\t" << std::setw(13) << obj._val[17] << "\t"
320  << "\n"
321  << "\t\t\t\t\t\t\t\t" << std::setw(13) << obj._val[18] << "\t" << std::setw(13)
322  << obj._val[19] << "\n"
323  << "\t\t\t\t\t\t\t\t\t\t" << std::setw(13) << obj._val[20] << std::endl;
324  return stream;
325 }
SymmElasticityTensor::_values_computed
bool _values_computed
Whether or not the values have been computed once.
Definition: SymmElasticityTensor.h:178
dataLoad
void dataLoad(std::istream &stream, SymmElasticityTensor &set, void *context)
Definition: SymmElasticityTensor.C:24
SymmElasticityTensor::_constant
bool _constant
Whether or not the matrix is constant for all of time and space.
Definition: SymmElasticityTensor.h:173
dataStore
void dataStore(std::ostream &stream, SymmElasticityTensor &set, void *context)
Definition: SymmElasticityTensor.C:15
SymmElasticityTensor::_val
Real _val[21]
Definition: SymmElasticityTensor.h:188