www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CrystalPlasticityRotationOutAux Class Reference

#include <CrystalPlasticityRotationOutAux.h>

Inheritance diagram for CrystalPlasticityRotationOutAux:
[legend]

Public Member Functions

 CrystalPlasticityRotationOutAux (const InputParameters &parameters)
 
virtual ~CrystalPlasticityRotationOutAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Private Attributes

std::string _rotout_file_name
 
unsigned int _out_freq
 
const MaterialProperty< RankTwoTensor > & _update_rot
 

Detailed Description

Definition at line 18 of file CrystalPlasticityRotationOutAux.h.

Constructor & Destructor Documentation

CrystalPlasticityRotationOutAux::CrystalPlasticityRotationOutAux ( const InputParameters &  parameters)

Definition at line 24 of file CrystalPlasticityRotationOutAux.C.

25  : AuxKernel(parameters),
26  _rotout_file_name(getParam<FileName>("rotout_file_name")),
27  _out_freq(getParam<unsigned int>("output_frequency")),
28  _update_rot(getMaterialProperty<RankTwoTensor>("update_rot"))
29 {
30 }
const MaterialProperty< RankTwoTensor > & _update_rot
virtual CrystalPlasticityRotationOutAux::~CrystalPlasticityRotationOutAux ( )
inlinevirtual

Definition at line 22 of file CrystalPlasticityRotationOutAux.h.

22 {}

Member Function Documentation

Real CrystalPlasticityRotationOutAux::computeValue ( )
protectedvirtual

Definition at line 33 of file CrystalPlasticityRotationOutAux.C.

Referenced by ~CrystalPlasticityRotationOutAux().

34 {
35  std::ofstream fileout;
36 
37  if (_t_step % _out_freq == 0)
38  {
39  fileout.open(_rotout_file_name.c_str(), std::ofstream::out | std::ofstream::app);
40  fileout << _t_step << ' ' << _dt << ' ' << _JxW[_qp] << ' ' << _update_rot[_qp](0, 0) << ' '
41  << _update_rot[_qp](0, 1) << ' ' << _update_rot[_qp](0, 2) << ' '
42  << _update_rot[_qp](1, 0) << ' ' << _update_rot[_qp](1, 1) << ' '
43  << _update_rot[_qp](1, 2) << ' ' << _update_rot[_qp](2, 0) << ' '
44  << _update_rot[_qp](2, 1) << ' ' << _update_rot[_qp](2, 2) << '\n';
45  }
46 
47  return 0;
48 }
const MaterialProperty< RankTwoTensor > & _update_rot

Member Data Documentation

unsigned int CrystalPlasticityRotationOutAux::_out_freq
private

Definition at line 29 of file CrystalPlasticityRotationOutAux.h.

Referenced by computeValue().

std::string CrystalPlasticityRotationOutAux::_rotout_file_name
private

Definition at line 28 of file CrystalPlasticityRotationOutAux.h.

Referenced by computeValue().

const MaterialProperty<RankTwoTensor>& CrystalPlasticityRotationOutAux::_update_rot
private

Definition at line 30 of file CrystalPlasticityRotationOutAux.h.

Referenced by computeValue().


The documentation for this class was generated from the following files: