Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Fiber::StressTensorArrays Struct Reference

Contains typed arrays to StressTensorValues. More...

#include <StressTensorValues.hpp>

Inheritance diagram for Fiber::StressTensorArrays:
Fiber::StressTensorValueArrays

Public Types

typedef Eagle::tvector3 vec3

Public Member Functions

 StressTensorArrays (Representation &R, const string &Fieldname, const RefPtr< FragmentID > &f)
 Extract stress arrays from the given Representation for the certain field.
 StressTensorArrays (Representation &R, const RefPtr< CreativeArrayBase > &TensorField, const string &Fieldname, const RefPtr< FragmentID > &f, bool TemporaryFields=false, bool Discardable=true)
 Make and eventually compute the eigen arrays for the given field.
void create (const RefPtr< MemBase > &Data)
 Create the stress arrays of the same size as the input data set.
void setFields (Representation &R, const string &Fieldname, const RefPtr< FragmentID > &f, const RefPtr< MemBase > &DataSource, bool Discardable=true)
bool HasStressTensorFields () const
 Check whether ALL eigen fields are defined.
 operator bool () const
Public Member Functions inherited from Fiber::StressTensorValueArrays
 StressTensorValueArrays (Representation &R, const string &Fieldname, const RefPtr< FragmentID > &f)
bool hasData () const
 Check whether ALL eigen value fields are defined.

Public Attributes

string problem
 A description of the problem, if there is any.
Public Attributes inherited from Fiber::StressTensorValueArrays
RefPtr< TypedArray< double > > pInvariant1
RefPtr< TypedArray< double > > pInvariant2
RefPtr< TypedArray< double > > pInvariant3
RefPtr< TypedArray< double > > pPressure
RefPtr< TypedArray< double > > pMises

Detailed Description

Contains typed arrays to StressTensorValues.

Member Function Documentation

◆ create()

void Fiber::StressTensorArrays::create ( const RefPtr< MemBase > & Data)

Create the stress arrays of the same size as the input data set.

Todo
this needs improval through using an OnDemandCreator

Referenced by StressTensorArrays().

◆ setFields()

void Fiber::StressTensorArrays::setFields ( Representation & R,
const string & Fieldname,
const RefPtr< FragmentID > & f,
const RefPtr< MemBase > & DataSource,
bool Discardable = true )
Parameters
DataSourceThe source of the data, only used to set up parental information and an cache info string.

References MemCore::Cache::MemCache().

Referenced by StressTensorArrays().