Public Member Functions | Private Member Functions | Private Attributes | Friends
blockDescriptor Class Reference

Takes the description of the block and the list of curved edges and creates a list of points on edges together with the weighting factors. More...

Inheritance diagram for blockDescriptor:
Inheritance graph
[legend]
Collaboration diagram for blockDescriptor:
Collaboration graph
[legend]

Public Member Functions

 blockDescriptor (const cellShape &, const pointField &blockPointField, const curvedEdgeList &, const Vector< label > &meshDensity, const UList< gradingDescriptors > &expand, const word &zoneName="")
 Construct from components. Optional cellSet/zone name. More...
 
 blockDescriptor (const pointField &blockPointField, const curvedEdgeList &, Istream &)
 Construct from Istream. More...
 
autoPtr< blockDescriptorclone () const
 Clone. More...
 
 ~blockDescriptor ()
 Destructor. More...
 
const Vector< label > & density () const
 Return the number of cells in the i,j,k directions. More...
 
const pointFieldblockPointField () const
 Reference to point field defining the block mesh. More...
 
const cellShapeblockShape () const
 Return the block shape. More...
 
const List< List< point > > & blockEdgePoints () const
 Return the block points along each edge. More...
 
const scalarListListblockEdgeWeights () const
 Return the weightings along each edge. More...
 
const Vector< label > & meshDensity () const
 Return the mesh density (number of cells) in the i,j,k directions. More...
 
const wordzoneName () const
 Return the (optional) zone name. More...
 
label nPoints () const
 Return the number of points. More...
 
label nCells () const
 Return the number of cells. More...
 
const pointblockPoint (const label i) const
 Return block point at local label i. More...
 

Private Member Functions

void makeBlockEdges ()
 Set the points/weights for all edges. More...
 
void setEdge (label edgeI, label start, label end, label dim)
 Set the edge points/weights. More...
 
void operator= (const blockDescriptor &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const pointFieldblockPointField_
 Reference to point field defining the block mesh. More...
 
const curvedEdgeListcurvedEdges_
 Reference to a list of curved edges. More...
 
cellShape blockShape_
 Block shape. More...
 
Vector< labelmeshDensity_
 The number of cells in the i,j,k directions. More...
 
List< List< point > > edgePoints_
 Block edge points. More...
 
scalarListList edgeWeights_
 Block edge weighting factors. More...
 
List< gradingDescriptorsexpand_
 Expansion ratios in all directions. More...
 
word zoneName_
 Name of the zone (empty string if none) More...
 

Friends

Ostreamoperator<< (Ostream &, const blockDescriptor &)
 

Detailed Description

Takes the description of the block and the list of curved edges and creates a list of points on edges together with the weighting factors.

Source files

Definition at line 61 of file blockDescriptor.H.

Constructor & Destructor Documentation

◆ blockDescriptor() [1/2]

blockDescriptor ( const cellShape bshape,
const pointField blockPointField,
const curvedEdgeList edges,
const Vector< label > &  meshDensity,
const UList< gradingDescriptors > &  expand,
const word zoneName = "" 
)

Construct from components. Optional cellSet/zone name.

Definition at line 32 of file blockDescriptor.C.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ blockDescriptor() [2/2]

blockDescriptor ( const pointField blockPointField,
const curvedEdgeList edges,
Istream is 
)

◆ ~blockDescriptor()

Destructor.

Definition at line 171 of file blockDescriptor.C.

Member Function Documentation

◆ makeBlockEdges()

void makeBlockEdges ( )
private

Set the points/weights for all edges.

Definition at line 32 of file blockDescriptorEdges.C.

References blockDescriptor::meshDensity_, blockDescriptor::setEdge(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ setEdge()

void setEdge ( label  edgeI,
label  start,
label  end,
label  dim 
)
private

Set the edge points/weights.

Definition at line 61 of file blockDescriptorEdges.C.

References curvedEdge::compare(), forAll, Foam::inv(), lineDivide::lambdaDivisions(), p, lineDivide::points(), List::setSize(), and List::size().

Referenced by blockDescriptor::makeBlockEdges().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const blockDescriptor )
private

Disallow default bitwise assignment.

◆ clone()

autoPtr<blockDescriptor> clone ( ) const
inline

Clone.

Definition at line 129 of file blockDescriptor.H.

References NotImplemented.

◆ density()

const Vector<label>& density ( ) const
inline

Return the number of cells in the i,j,k directions.

Definition at line 145 of file blockDescriptor.H.

References blockDescriptor::meshDensity_.

◆ blockPointField()

const Foam::pointField & blockPointField ( ) const

Reference to point field defining the block mesh.

Definition at line 177 of file blockDescriptor.C.

◆ blockShape()

const Foam::cellShape & blockShape ( ) const

Return the block shape.

Definition at line 183 of file blockDescriptor.C.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ blockEdgePoints()

const Foam::List< Foam::List< Foam::point > > & blockEdgePoints ( ) const

Return the block points along each edge.

Definition at line 190 of file blockDescriptor.C.

Referenced by block::createPoints().

Here is the caller graph for this function:

◆ blockEdgeWeights()

const Foam::scalarListList & blockEdgeWeights ( ) const

Return the weightings along each edge.

Definition at line 196 of file blockDescriptor.C.

Referenced by block::createPoints().

Here is the caller graph for this function:

◆ meshDensity()

const Foam::Vector< Foam::label > & meshDensity ( ) const

Return the mesh density (number of cells) in the i,j,k directions.

Definition at line 202 of file blockDescriptor.C.

Referenced by block::createPoints(), Foam::faceNij(), Foam::facePoint(), Foam::facePointN(), Foam::operator<<(), and block::vtxLabel().

Here is the caller graph for this function:

◆ zoneName()

const Foam::word & zoneName ( ) const

Return the (optional) zone name.

Definition at line 208 of file blockDescriptor.C.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ nPoints()

Foam::label nPoints ( ) const

Return the number of points.

Definition at line 214 of file blockDescriptor.C.

Referenced by block::createPoints().

Here is the caller graph for this function:

◆ nCells()

Foam::label nCells ( ) const

Return the number of cells.

Definition at line 225 of file blockDescriptor.C.

◆ blockPoint()

const Foam::point & blockPoint ( const label  i) const

Return block point at local label i.

Definition at line 236 of file blockDescriptor.C.

Referenced by block::createPoints().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const blockDescriptor  
)
friend

Field Documentation

◆ blockPointField_

const pointField& blockPointField_
private

Reference to point field defining the block mesh.

Definition at line 66 of file blockDescriptor.H.

◆ curvedEdges_

const curvedEdgeList& curvedEdges_
private

Reference to a list of curved edges.

Definition at line 69 of file blockDescriptor.H.

◆ blockShape_

cellShape blockShape_
private

Block shape.

Definition at line 72 of file blockDescriptor.H.

◆ meshDensity_

Vector<label> meshDensity_
private

The number of cells in the i,j,k directions.

Definition at line 75 of file blockDescriptor.H.

Referenced by blockDescriptor::density(), and blockDescriptor::makeBlockEdges().

◆ edgePoints_

List< List<point> > edgePoints_
private

Block edge points.

Definition at line 78 of file blockDescriptor.H.

◆ edgeWeights_

scalarListList edgeWeights_
private

Block edge weighting factors.

Definition at line 81 of file blockDescriptor.H.

◆ expand_

List<gradingDescriptors> expand_
private

Expansion ratios in all directions.

Definition at line 84 of file blockDescriptor.H.

Referenced by Foam::operator<<().

◆ zoneName_

word zoneName_
private

Name of the zone (empty string if none)

Definition at line 87 of file blockDescriptor.H.


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