VTK
|
reconstructs material interfaces More...
#include <vtkYoungsMaterialInterface.h>
Public Types | |
enum | { MAX_CELL_POINTS =256 } |
typedef vtkMultiBlockDataSetAlgorithm | Superclass |
![]() | |
typedef vtkAlgorithm | Superclass |
![]() | |
typedef vtkObject | Superclass |
enum | DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION } |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkYoungsMaterialInterface * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | RemoveAllMaterials () |
virtual void | SetInverseNormal (int) |
virtual int | GetInverseNormal () |
virtual void | InverseNormalOn () |
virtual void | InverseNormalOff () |
virtual void | SetReverseMaterialOrder (int) |
virtual int | GetReverseMaterialOrder () |
virtual void | ReverseMaterialOrderOn () |
virtual void | ReverseMaterialOrderOff () |
virtual void | SetOnionPeel (int) |
virtual int | GetOnionPeel () |
virtual void | OnionPeelOn () |
virtual void | OnionPeelOff () |
virtual void | SetAxisSymetric (int) |
virtual int | GetAxisSymetric () |
virtual void | AxisSymetricOn () |
virtual void | AxisSymetricOff () |
virtual void | SetUseFractionAsDistance (int) |
virtual int | GetUseFractionAsDistance () |
virtual void | UseFractionAsDistanceOn () |
virtual void | UseFractionAsDistanceOff () |
virtual void | SetFillMaterial (int) |
virtual int | GetFillMaterial () |
virtual void | FillMaterialOn () |
virtual void | FillMaterialOff () |
virtual void | SetVolumeFractionRange (double, double) |
void | SetVolumeFractionRange (double[2]) |
virtual double * | GetVolumeFractionRange () |
virtual void | GetVolumeFractionRange (double data[2]) |
virtual void | SetNumberOfMaterials (int n) |
virtual int | GetNumberOfMaterials () |
virtual void | SetUseAllBlocks (bool) |
virtual bool | GetUseAllBlocks () |
virtual void | UseAllBlocksOn () |
virtual void | UseAllBlocksOff () |
virtual int | GetNumberOfDomains () |
virtual void | SetMaterialArrays (int i, const char *volume, const char *normalX, const char *normalY, const char *normalZ, const char *ordering) |
virtual void | SetMaterialArrays (int i, const char *volume, const char *normal, const char *ordering) |
virtual void | SetMaterialVolumeFractionArray (int i, const char *volume) |
virtual void | SetMaterialNormalArray (int i, const char *normal) |
virtual void | SetMaterialOrderingArray (int i, const char *ordering) |
virtual void | SetMaterialNormalArray (const char *volume, const char *normal) |
virtual void | SetMaterialOrderingArray (const char *volume, const char *ordering) |
virtual void | RemoveAllMaterialBlockMappings () |
virtual void | AddMaterialBlockMapping (int b) |
![]() | |
vtkMultiBlockDataSetAlgorithm * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkMultiBlockDataSet * | GetOutput () |
vtkMultiBlockDataSet * | GetOutput (int) |
void | SetInputData (vtkDataObject *) |
void | SetInputData (int, vtkDataObject *) |
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
![]() | |
vtkAlgorithm * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | HasExecutive () |
vtkExecutive * | GetExecutive () |
virtual void | SetExecutive (vtkExecutive *executive) |
virtual int | ModifyRequest (vtkInformation *request, int when) |
vtkInformation * | GetInputPortInformation (int port) |
vtkInformation * | GetOutputPortInformation (int port) |
int | GetNumberOfInputPorts () |
int | GetNumberOfOutputPorts () |
void | UpdateProgress (double amount) |
vtkInformation * | GetInputArrayInformation (int idx) |
void | RemoveAllInputs () |
vtkDataObject * | GetOutputDataObject (int port) |
virtual void | RemoveInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | RemoveInputConnection (int port, int idx) |
virtual void | RemoveAllInputConnections (int port) |
int | GetNumberOfInputConnections (int port) |
int | GetTotalNumberOfInputConnections () |
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
vtkAlgorithm * | GetInputAlgorithm (int port, int index, int &algPort) |
vtkAlgorithm * | GetInputAlgorithm (int port, int index) |
vtkExecutive * | GetInputExecutive (int port, int index) |
vtkInformation * | GetInputInformation (int port, int index) |
vtkInformation * | GetOutputInformation (int port) |
virtual void | UpdateInformation () |
virtual void | PropagateUpdateExtent () |
virtual void | UpdateWholeExtent () |
void | ConvertTotalInputToPortConnection (int ind, int &port, int &conn) |
virtual double | ComputePriority () |
int | SetUpdateExtentToWholeExtent (int port) |
int | SetUpdateExtentToWholeExtent () |
void | SetUpdateExtent (int port, int extent[6]) |
int | ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo) |
virtual int | ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime) |
virtual vtkInformation * | GetInformation () |
virtual void | SetInformation (vtkInformation *) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
virtual void | SetAbortExecute (int) |
virtual int | GetAbortExecute () |
virtual void | AbortExecuteOn () |
virtual void | AbortExecuteOff () |
virtual void | SetProgress (double) |
virtual double | GetProgress () |
void | SetProgressText (const char *ptext) |
virtual char * | GetProgressText () |
virtual unsigned long | GetErrorCode () |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
vtkDataObject * | GetInputDataObject (int port, int connection) |
virtual void | SetInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (vtkAlgorithmOutput *input) |
virtual void | SetInputDataObject (int port, vtkDataObject *data) |
virtual void | SetInputDataObject (vtkDataObject *data) |
virtual void | AddInputDataObject (int port, vtkDataObject *data) |
virtual void | AddInputDataObject (vtkDataObject *data) |
vtkAlgorithmOutput * | GetOutputPort (int index) |
vtkAlgorithmOutput * | GetOutputPort () |
vtkAlgorithm * | GetInputAlgorithm () |
vtkExecutive * | GetInputExecutive () |
vtkInformation * | GetInputInformation () |
virtual void | Update (int port) |
virtual void | Update () |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
void | ReleaseDataFlagOn () |
void | ReleaseDataFlagOff () |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output) |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
void | SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel) |
void | SetUpdateExtent (int piece, int numPieces, int ghostLevel) |
void | SetUpdateExtent (int extent[6]) |
int * | GetUpdateExtent () |
int * | GetUpdateExtent (int port) |
void | GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1) |
void | GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1) |
void | GetUpdateExtent (int extent[6]) |
void | GetUpdateExtent (int port, int extent[6]) |
int | GetUpdatePiece () |
int | GetUpdatePiece (int port) |
int | GetUpdateNumberOfPieces () |
int | GetUpdateNumberOfPieces (int port) |
int | GetUpdateGhostLevel () |
int | GetUpdateGhostLevel (int port) |
Static Public Member Functions | |
static vtkYoungsMaterialInterface * | New () |
static int | IsTypeOf (const char *type) |
static vtkYoungsMaterialInterface * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkMultiBlockDataSetAlgorithm * | New () |
static int | IsTypeOf (const char *type) |
static vtkMultiBlockDataSetAlgorithm * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkAlgorithm * | New () |
static int | IsTypeOf (const char *type) |
static vtkAlgorithm * | SafeDownCast (vtkObjectBase *o) |
static void | SetDefaultExecutivePrototype (vtkExecutive *proto) |
static vtkInformationIntegerKey * | INPUT_IS_OPTIONAL () |
static vtkInformationIntegerKey * | INPUT_IS_REPEATABLE () |
static vtkInformationInformationVectorKey * | INPUT_REQUIRED_FIELDS () |
static vtkInformationStringVectorKey * | INPUT_REQUIRED_DATA_TYPE () |
static vtkInformationInformationVectorKey * | INPUT_ARRAYS_TO_PROCESS () |
static vtkInformationIntegerKey * | INPUT_PORT () |
static vtkInformationIntegerKey * | INPUT_CONNECTION () |
static vtkInformationIntegerKey * | PRESERVES_DATASET () |
static vtkInformationIntegerKey * | PRESERVES_GEOMETRY () |
static vtkInformationIntegerKey * | PRESERVES_BOUNDS () |
static vtkInformationIntegerKey * | PRESERVES_TOPOLOGY () |
static vtkInformationIntegerKey * | PRESERVES_ATTRIBUTES () |
static vtkInformationIntegerKey * | PRESERVES_RANGES () |
static vtkInformationIntegerKey * | MANAGES_METAINFORMATION () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkYoungsMaterialInterface () | |
virtual | ~vtkYoungsMaterialInterface () |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual void | Aggregate (int, int *) |
void | UpdateBlockMapping () |
int | CellProduceInterface (int dim, int np, double fraction, double minFrac, double maxFrac) |
![]() | |
vtkMultiBlockDataSetAlgorithm () | |
~vtkMultiBlockDataSetAlgorithm () | |
virtual vtkExecutive * | CreateDefaultExecutive () |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
vtkDataObject * | GetInput (int port) |
virtual int | RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
![]() | |
vtkAlgorithm () | |
~vtkAlgorithm () | |
virtual void | SetNumberOfInputPorts (int n) |
virtual void | SetNumberOfOutputPorts (int n) |
int | InputPortIndexInRange (int index, const char *action) |
int | OutputPortIndexInRange (int index, const char *action) |
int | GetInputArrayAssociation (int idx, vtkInformationVector **inputVector) |
virtual void | ReportReferences (vtkGarbageCollector *) |
virtual void | SetNumberOfInputConnections (int port, int n) |
int | GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector) |
int | GetInputArrayAssociation (int idx, vtkDataObject *input) |
vtkDataArray * | GetInputArrayToProcess (int idx, vtkInformationVector **inputVector) |
vtkDataArray * | GetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association) |
vtkDataArray * | GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector) |
vtkDataArray * | GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association) |
vtkDataArray * | GetInputArrayToProcess (int idx, vtkDataObject *input) |
vtkDataArray * | GetInputArrayToProcess (int idx, vtkDataObject *input, int &association) |
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector) |
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association) |
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector) |
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association) |
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkDataObject *input) |
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association) |
vtkInformation * | GetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector) |
virtual void | SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input) |
void | SetInputDataInternal (int port, vtkDataObject *input) |
void | AddInputDataInternal (int port, vtkDataObject *input) |
virtual void | SetErrorCode (unsigned long) |
Protected Attributes | |
int | NumberOfDomains |
vtkYoungsMaterialInterfaceInternals * | Internals |
int | FillMaterial |
int | InverseNormal |
int | AxisSymetric |
int | OnionPeel |
int | ReverseMaterialOrder |
int | UseFractionAsDistance |
double | VolumeFractionRange [2] |
vtkSmartPointer< vtkIntArray > | MaterialBlockMapping |
bool | UseAllBlocks |
![]() | |
vtkInformation * | Information |
double | Progress |
char * | ProgressText |
unsigned long | ErrorCode |
Additional Inherited Members | |
![]() | |
int | AbortExecute |
![]() | |
static vtkInformationIntegerKey * | PORT_REQUIREMENTS_FILLED () |
![]() | |
static vtkExecutive * | DefaultExecutivePrototype |
reconstructs material interfaces
Reconstructs material interfaces from a mesh containing mixed cells (where several materials are mixed) this implementation is based on the youngs algorithm, generalized to arbitrary cell types and works on both 2D and 3D meshes. the main advantage of the youngs algorithm is it guarantees the material volume correctness. for 2D meshes, the AxisSymetric flag allows to switch between a pure 2D (planar) algorithm and an axis symetric 2D algorithm handling volumes of revolution.
Definition at line 52 of file vtkYoungsMaterialInterface.h.
Definition at line 56 of file vtkYoungsMaterialInterface.h.
anonymous enum |
Enumerator | |
---|---|
MAX_CELL_POINTS |
Definition at line 170 of file vtkYoungsMaterialInterface.h.
|
protected |
|
protectedvirtual |
|
static |
|
static |
|
virtual |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
Reimplemented in vtkPYoungsMaterialInterface.
|
static |
|
protectedvirtual |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
Reimplemented in vtkPYoungsMaterialInterface.
vtkYoungsMaterialInterface* vtkYoungsMaterialInterface::NewInstance | ( | ) | const |
void vtkYoungsMaterialInterface::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Set/Get wether the normal vector has to be flipped.
|
virtual |
Set/Get wether the normal vector has to be flipped.
|
virtual |
Set/Get wether the normal vector has to be flipped.
|
virtual |
Set/Get wether the normal vector has to be flipped.
|
virtual |
If this flag is on, material order in reversed. Otherwise, materials are sorted in ascending order depending on the given ordering array.
|
virtual |
If this flag is on, material order in reversed. Otherwise, materials are sorted in ascending order depending on the given ordering array.
|
virtual |
If this flag is on, material order in reversed. Otherwise, materials are sorted in ascending order depending on the given ordering array.
|
virtual |
If this flag is on, material order in reversed. Otherwise, materials are sorted in ascending order depending on the given ordering array.
|
virtual |
Set/Get OnionPeel flag. if this flag is on, the normal vector of the first material (which depends on material ordering) is used for all materials.
|
virtual |
Set/Get OnionPeel flag. if this flag is on, the normal vector of the first material (which depends on material ordering) is used for all materials.
|
virtual |
Set/Get OnionPeel flag. if this flag is on, the normal vector of the first material (which depends on material ordering) is used for all materials.
|
virtual |
Set/Get OnionPeel flag. if this flag is on, the normal vector of the first material (which depends on material ordering) is used for all materials.
|
virtual |
Turns on/off AxisSymetric computation of 2D interfaces. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
Turns on/off AxisSymetric computation of 2D interfaces. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
Turns on/off AxisSymetric computation of 2D interfaces. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
Turns on/off AxisSymetric computation of 2D interfaces. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
when UseFractionAsDistance is true, the volume fraction is interpreted as the distance of the cutting plane from the origin. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
when UseFractionAsDistance is true, the volume fraction is interpreted as the distance of the cutting plane from the origin. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
when UseFractionAsDistance is true, the volume fraction is interpreted as the distance of the cutting plane from the origin. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
when UseFractionAsDistance is true, the volume fraction is interpreted as the distance of the cutting plane from the origin. in axis symetric mode, 2D meshes are understood as volumes of revolution.
|
virtual |
When FillMaterial is set to 1, the volume containing material is output and not only the interface surface.
|
virtual |
When FillMaterial is set to 1, the volume containing material is output and not only the interface surface.
|
virtual |
When FillMaterial is set to 1, the volume containing material is output and not only the interface surface.
|
virtual |
When FillMaterial is set to 1, the volume containing material is output and not only the interface surface.
|
virtual |
Set/Get minimum and maximum volume fraction value. if a material fills a volume above the minimum value, the material is considered to be void. if a material fills a volume fraction beyond the maximum value it is considered as filling the whole volume.
void vtkYoungsMaterialInterface::SetVolumeFractionRange | ( | double | [2] | ) |
Set/Get minimum and maximum volume fraction value. if a material fills a volume above the minimum value, the material is considered to be void. if a material fills a volume fraction beyond the maximum value it is considered as filling the whole volume.
|
virtual |
Set/Get minimum and maximum volume fraction value. if a material fills a volume above the minimum value, the material is considered to be void. if a material fills a volume fraction beyond the maximum value it is considered as filling the whole volume.
|
virtual |
Set/Get minimum and maximum volume fraction value. if a material fills a volume above the minimum value, the material is considered to be void. if a material fills a volume fraction beyond the maximum value it is considered as filling the whole volume.
|
virtual |
Sets/Gets the number of materials.
|
virtual |
Sets/Gets the number of materials.
|
virtual |
Set/Get whether all material blocks should be used, irrespective of the material block mapping.
|
virtual |
Set/Get whether all material blocks should be used, irrespective of the material block mapping.
|
virtual |
Set/Get whether all material blocks should be used, irrespective of the material block mapping.
|
virtual |
Set/Get whether all material blocks should be used, irrespective of the material block mapping.
|
virtual |
Only meaningfull for LOVE software. returns the maximum number of blocks conatining the same material
|
virtual |
Set ith Material arrays to be used as volume fraction, interface normal and material ordering. Each parameter name a cell array.
|
virtual |
Set ith Material arrays to be used as volume fraction, interface normal and material ordering. Each parameter name a cell array.
|
virtual |
Set ith Material arrays to be used as volume fraction, interface normal and material ordering. Each parameter name a cell array.
|
virtual |
Set ith Material arrays to be used as volume fraction, interface normal and material ordering. Each parameter name a cell array.
|
virtual |
Set ith Material arrays to be used as volume fraction, interface normal and material ordering. Each parameter name a cell array.
|
virtual |
Removes all meterials previously added.
|
virtual |
Alternative API for associating Normal and Ordering arrays to materials identified by its volume-fraction array. Note that these mappings are cleared by a call to RemoveAllMaterials() but not by SetNumberOfMaterials(). If one uses the SetMaterial*Array(int, ...) API to set the normal or ordering arrays, then that supersedes the values set using this API.
|
virtual |
Alternative API for associating Normal and Ordering arrays to materials identified by its volume-fraction array. Note that these mappings are cleared by a call to RemoveAllMaterials() but not by SetNumberOfMaterials(). If one uses the SetMaterial*Array(int, ...) API to set the normal or ordering arrays, then that supersedes the values set using this API.
|
virtual |
select blocks to be processed for each described material.
|
virtual |
select blocks to be processed for each described material.
|
protectedvirtual |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
|
protectedvirtual |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
|
protectedvirtual |
Serial implementation of the material aggregation.
Reimplemented in vtkPYoungsMaterialInterface.
|
protected |
|
protected |
|
protected |
Read-Write Properties
Definition at line 194 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 195 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 196 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 197 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 198 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 199 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 200 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 202 of file vtkYoungsMaterialInterface.h.
|
protected |
Read-Write Properties
Definition at line 204 of file vtkYoungsMaterialInterface.h.
|
protected |
Read only properties
Definition at line 208 of file vtkYoungsMaterialInterface.h.
|
protected |
Definition at line 212 of file vtkYoungsMaterialInterface.h.