www.mooseframework.org
Functions
SymmTensor.C File Reference

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const SymmTensor &obj)
 
template<>
void dataStore (std::ostream &stream, const SymmTensor &v, void *)
 
template<>
void dataLoad (std::istream &stream, SymmTensor &v, void *)
 

Function Documentation

template<>
void dataLoad ( std::istream &  stream,
SymmTensor v,
void *   
)

Definition at line 52 of file SymmTensor.C.

53 {
54  Real r = 0.;
55  stream.read((char *)&r, sizeof(r));
56  v.xx(r);
57  stream.read((char *)&r, sizeof(r));
58  v.yy(r);
59  stream.read((char *)&r, sizeof(r));
60  v.zz(r);
61  stream.read((char *)&r, sizeof(r));
62  v.xy(r);
63  stream.read((char *)&r, sizeof(r));
64  v.yz(r);
65  stream.read((char *)&r, sizeof(r));
66  v.zx(r);
67 }
Real yy() const
Definition: SymmTensor.h:130
Real xx() const
Definition: SymmTensor.h:129
Real zz() const
Definition: SymmTensor.h:131
Real xy() const
Definition: SymmTensor.h:132
Real yz() const
Definition: SymmTensor.h:133
Real zx() const
Definition: SymmTensor.h:134
template<>
void dataStore ( std::ostream &  stream,
const SymmTensor v,
void *   
)

Definition at line 33 of file SymmTensor.C.

34 {
35  Real r;
36  r = v.xx();
37  stream.write((const char *)&r, sizeof(r));
38  r = v.yy();
39  stream.write((const char *)&r, sizeof(r));
40  r = v.zz();
41  stream.write((const char *)&r, sizeof(r));
42  r = v.xy();
43  stream.write((const char *)&r, sizeof(r));
44  r = v.yz();
45  stream.write((const char *)&r, sizeof(r));
46  r = v.zx();
47  stream.write((const char *)&r, sizeof(r));
48 }
Real yy() const
Definition: SymmTensor.h:130
Real xx() const
Definition: SymmTensor.h:129
Real zz() const
Definition: SymmTensor.h:131
Real xy() const
Definition: SymmTensor.h:132
Real yz() const
Definition: SymmTensor.h:133
Real zx() const
Definition: SymmTensor.h:134
std::ostream& operator<< ( std::ostream &  stream,
const SymmTensor obj 
)

Definition at line 10 of file SymmTensor.C.

11 {
12  stream << "SymmTensor:\n"
13  << std::setprecision(6) << std::setw(13) << obj._xx << "\t" << std::setw(13) << obj._xy
14  << "\t" << std::setw(13) << obj._zx << "\n"
15  << "\t\t" << std::setw(13) << obj._yy << "\t" << std::setw(13) << obj._yz << "\n"
16  << "\t\t\t\t" << std::setw(13) << obj._zz << std::endl;
17  return stream;
18 }