Loading...
Searching...
No Matches
deltaBoundary Class Reference

Differentiation of the mesh data structure. More...

#include <deltaBoundary.H>

Collaboration diagram for deltaBoundary:

Public Member Functions

 deltaBoundary (const fvMesh &mesh)
 Construct from components.
 ~deltaBoundary ()=default
 Destructor.
vectorField makeFaceCentresAndAreas_d (const pointField &p, const pointField &p_d)
 Given a face and the points to be moved in the normal direction, find faceArea, faceCentre and unitVector changes.
tensorField makeFaceCentresAndAreas_d (const pointField &p, const tensorField &p_d)
 Given a face and the points to be moved in an arbitrary direction, find faceArea, faceCentre and unitVector changes.
template<class pT>
pT makeCellCentres_d (const vectorField &fAreas, const vectorField &fCtrs, const Field< pT > &fAreas_d, const Field< pT > &fCtrs_d)
 Compute cell center variation wrt given face movement or derivative.
tmp< tensorFieldcellCenters_d (const label pointI)
 Compute the change of the cell centers of the pointCells of pointI, for a unitary movement of pointI in all three directions.

Protected Attributes

const fvMeshmesh_
 Reference to the mesh.

Detailed Description

Differentiation of the mesh data structure.

Source files

Definition at line 54 of file deltaBoundary.H.

Constructor & Destructor Documentation

◆ deltaBoundary()

deltaBoundary ( const fvMesh & mesh)

Construct from components.

Definition at line 56 of file deltaBoundary.C.

References mesh, and mesh_.

◆ ~deltaBoundary()

~deltaBoundary ( )
default

Destructor.

References p.

Member Function Documentation

◆ makeFaceCentresAndAreas_d() [1/2]

vectorField makeFaceCentresAndAreas_d ( const pointField & p,
const pointField & p_d )

Given a face and the points to be moved in the normal direction, find faceArea, faceCentre and unitVector changes.

Definition at line 64 of file deltaBoundary.C.

References Foam::endl(), Foam::mag(), n, nPoints, p, pi(), WarningInFunction, and Foam::Zero.

Referenced by cellCenters_d(), NURBS3DVolume::computeControlPointSensitivities(), NURBS3DVolume::computeControlPointSensitivities(), Bezier::dndbBasedSensitivities(), Bezier::dndbBasedSensitivities(), NURBS3DVolume::dndbBasedSensitivities(), Bezier::dxdbFace(), Bezier::dxdbFace(), sensitivitySurfacePoints::finalisePointSensitivities(), and NURBS3DVolume::patchDxDbFace().

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

◆ makeFaceCentresAndAreas_d() [2/2]

tensorField makeFaceCentresAndAreas_d ( const pointField & p,
const tensorField & p_d )

Given a face and the points to be moved in an arbitrary direction, find faceArea, faceCentre and unitVector changes.

Definition at line 171 of file deltaBoundary.C.

References Foam::endl(), Foam::mag(), n, Foam::nl, nPoints, p, pi(), Foam::sqr(), WarningInFunction, and Foam::Zero.

Here is the call graph for this function:

◆ makeCellCentres_d()

template<class pT>
pT makeCellCentres_d ( const vectorField & fAreas,
const vectorField & fCtrs,
const Field< pT > & fAreas_d,
const Field< pT > & fCtrs_d )

Compute cell center variation wrt given face movement or derivative.

pT (perturbation type) should be a vector in case of known face area and ctr movements or a tensor for gradients

Definition at line 33 of file deltaBoundaryTemplates.C.

References cellVols, forAll, Foam::mag(), UList< T >::size(), and Foam::Zero.

Referenced by cellCenters_d().

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

◆ cellCenters_d()

tmp< tensorField > cellCenters_d ( const label pointI)

Compute the change of the cell centers of the pointCells of pointI, for a unitary movement of pointI in all three directions.

Definition at line 278 of file deltaBoundary.C.

References forAll, Tensor< scalar >::I, makeCellCentres_d(), makeFaceCentresAndAreas_d(), mesh_, tmp< T >::New(), face::points(), points, UList< T >::size(), and Foam::Zero.

Referenced by NURBS3DVolume::getDxCellsDb().

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

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

Reference to the mesh.

Definition at line 63 of file deltaBoundary.H.

Referenced by cellCenters_d(), and deltaBoundary().


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