v0.9.2
Public Types | Public Member Functions | Public Attributes | List of all members
Example::CommonData Struct Reference

[Example] More...

Inherits enable_shared_from_this< Example::CommonData >.

Collaboration diagram for Example::CommonData:
[legend]

Public Types

enum  VecElements {
  ZERO = 0, FIRST_X, FIRST_Y, FIRST_Z,
  SECOND_XX, SECOND_XY, SECOND_XZ, SECOND_YY,
  SECOND_YZ, SECOND_ZZ, LAST_ELEMENT
}
 Vector to indicate indices for storing zero, first and second moments of inertia. More...
 

Public Member Functions

boost::shared_ptr< VectorDoublegetRhoAtIntegrationPtsPtr ()
 

Public Attributes

VectorDouble rhoAtIntegrationPts
 Storing density at integration points. More...
 
SmartPetscObj< Vec > petscVec
 Smart pointer which stores PETSc distributed vector. More...
 
boost::shared_ptr< VectorDoubleapproxVals
 
SmartPetscObj< Vec > L2Vec
 
SmartPetscObj< Vec > resVec
 

Detailed Description

[Example]

[Common data]

Examples
lesson1_moment_of_inertia.cpp.

Definition at line 67 of file lesson1_moment_of_inertia.cpp.

Member Enumeration Documentation

◆ VecElements

Member Function Documentation

◆ getRhoAtIntegrationPtsPtr()

boost::shared_ptr<VectorDouble> Example::CommonData::getRhoAtIntegrationPtsPtr ( )

Definition at line 72 of file lesson1_moment_of_inertia.cpp.

72  {
73  return boost::shared_ptr<VectorDouble>(shared_from_this(),
75  }
VectorDouble rhoAtIntegrationPts
Storing density at integration points.

Member Data Documentation

◆ approxVals

boost::shared_ptr< VectorDouble > Example::CommonData::approxVals

Definition at line 64 of file lesson2_approximaton.cpp.

◆ L2Vec

SmartPetscObj< Vec > Example::CommonData::L2Vec

Definition at line 65 of file lesson2_approximaton.cpp.

◆ petscVec

SmartPetscObj<Vec> Example::CommonData::petscVec

Smart pointer which stores PETSc distributed vector.

Definition at line 97 of file lesson1_moment_of_inertia.cpp.

◆ resVec

SmartPetscObj< Vec > Example::CommonData::resVec

Definition at line 66 of file lesson2_approximaton.cpp.

◆ rhoAtIntegrationPts

VectorDouble Example::CommonData::rhoAtIntegrationPts

Storing density at integration points.

Definition at line 70 of file lesson1_moment_of_inertia.cpp.


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