ViennaGrid for Python
 All Classes Files Functions Variables
Functions
cell_refine.hpp File Reference

Implement cell refinement. More...

#include "../domains/triangular.hpp"
#include "../domains/tetrahedral.hpp"
#include "../segmentations/triangular.hpp"
#include "../segmentations/tetrahedral.hpp"
#include "../cells/triangular.hpp"
#include "../cells/tetrahedral.hpp"
#include <boost/python.hpp>

Go to the source code of this file.

Functions

tuple TriangularCartesian2D_Domain_cell_refine (TriangularCartesian2D_Domain domain_in, TriangularCartesian2D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given triangular cartesian 2D domain and segmentation which match a given predicate.
tuple TriangularCartesian3D_Domain_cell_refine (TriangularCartesian3D_Domain domain_in, TriangularCartesian3D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given triangular cartesian 3D domain and segmentation which match a given predicate.
tuple TriangularCylindrical3D_Domain_cell_refine (TriangularCylindrical3D_Domain domain_in, TriangularCylindrical3D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given triangular cylindrical domain and segmentation which match a given predicate.
tuple TriangularPolar2D_Domain_cell_refine (TriangularPolar2D_Domain domain_in, TriangularPolar2D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given triangular polar domain and segmentation which match a given predicate.
tuple TriangularSpherical3D_Domain_cell_refine (TriangularSpherical3D_Domain domain_in, TriangularSpherical3D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given triangular spherical domain and segmentation which match a given predicate.
tuple TetrahedralCartesian3D_Domain_cell_refine (TetrahedralCartesian3D_Domain domain_in, TetrahedralCartesian3D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given tetrahedral cartesian 3D domain and segmentation which match a given predicate.
tuple TetrahedralCylindrical3D_Domain_cell_refine (TetrahedralCylindrical3D_Domain domain_in, TetrahedralCylindrical3D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given tetrahedral cylindrical domain and segmentation which match a given predicate.
tuple TetrahedralSpherical3D_Domain_cell_refine (TetrahedralSpherical3D_Domain domain_in, TetrahedralSpherical3D_Segmentation segmentation_in, object predicate)
 Refine all cells of the given tetrahedral spherical domain and segmentation which match a given predicate.

Detailed Description

Implement cell refinement.

This module provides the cell_refine function for triangular and tetrahedral domains. This function refines all cells of the given domain and segmentation which match a given predicate.

Function Documentation

tuple TetrahedralCartesian3D_Domain_cell_refine ( TetrahedralCartesian3D_Domain  domain_in,
TetrahedralCartesian3D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given tetrahedral cartesian 3D domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0
tuple TetrahedralCylindrical3D_Domain_cell_refine ( TetrahedralCylindrical3D_Domain  domain_in,
TetrahedralCylindrical3D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given tetrahedral cylindrical domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0
tuple TetrahedralSpherical3D_Domain_cell_refine ( TetrahedralSpherical3D_Domain  domain_in,
TetrahedralSpherical3D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given tetrahedral spherical domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0
tuple TriangularCartesian2D_Domain_cell_refine ( TriangularCartesian2D_Domain  domain_in,
TriangularCartesian2D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given triangular cartesian 2D domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0
tuple TriangularCartesian3D_Domain_cell_refine ( TriangularCartesian3D_Domain  domain_in,
TriangularCartesian3D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given triangular cartesian 3D domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0
tuple TriangularCylindrical3D_Domain_cell_refine ( TriangularCylindrical3D_Domain  domain_in,
TriangularCylindrical3D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given triangular cylindrical domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0
tuple TriangularPolar2D_Domain_cell_refine ( TriangularPolar2D_Domain  domain_in,
TriangularPolar2D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given triangular polar domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0
tuple TriangularSpherical3D_Domain_cell_refine ( TriangularSpherical3D_Domain  domain_in,
TriangularSpherical3D_Segmentation  segmentation_in,
object  predicate 
)

Refine all cells of the given triangular spherical domain and segmentation which match a given predicate.

Parameters
domain_inDomain to be refined.
segmentation_inSegmentation of the domain to be refined.
predicatePredicate to test if a cell should be marked for refinement.
Returns
Python tuple with two elements:
  1. the refined domain, and
  2. the refined segmentation.
Since
0.1.0