FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

sampledTriSurfaceMesh Class Reference

A sampledSurface from a triSurfaceMesh. It samples on the points/triangles of the triSurface. More...

#include <sampling/sampledTriSurfaceMesh.H>


Detailed Description

A sampledSurface from a triSurfaceMesh. It samples on the points/triangles of the triSurface.

It samples using the cell nearest to the triangle centre so does not check the cell the centre is actually in ...

In parallel every processor just operates on the part of the surface where the face centres are inside the mesh. It is then up to the caller to stitch the partial surfaces together.

Source files

Definition at line 59 of file sampledTriSurfaceMesh.H.

Inheritance diagram for sampledTriSurfaceMesh:
Collaboration diagram for sampledTriSurfaceMesh:

List of all members.

Public Member Functions

 TypeName ("sampledTriSurfaceMesh")
 Runtime type information.
 sampledTriSurfaceMesh (const word &name, const polyMesh &mesh, const word &surfaceName)
 Construct from components.
 sampledTriSurfaceMesh (const word &name, const polyMesh &mesh, const dictionary &dict)
 Construct from dictionary.
virtual  ~sampledTriSurfaceMesh ()
virtual bool  needsUpdate () const
 Does the surface need an update?
virtual bool  expire ()
 Mark the surface as needing an update.
virtual bool  update ()
 Update the surface as required.
virtual const pointField &  points () const
 Points of surface.
virtual const faceList &  faces () const
 Faces of surface.
virtual tmp< scalarField >  sample (const volScalarField &) const
 sample field on surface
virtual tmp< vectorField >  sample (const volVectorField &) const
 sample field on surface
virtual tmp< sphericalTensorField >  sample (const volSphericalTensorField &) const
 sample field on surface
virtual tmp< symmTensorField >  sample (const volSymmTensorField &) const
 sample field on surface
virtual tmp< tensorField >  sample (const volTensorField &) const
 sample field on surface
virtual tmp< scalarField >  interpolate (const interpolation< scalar > &) const
 interpolate field on surface
virtual tmp< vectorField >  interpolate (const interpolation< vector > &) const
 interpolate field on surface
virtual tmp< sphericalTensorField >  interpolate (const interpolation< sphericalTensor > &) const
 interpolate field on surface
virtual tmp< symmTensorField >  interpolate (const interpolation< symmTensor > &) const
 interpolate field on surface
virtual tmp< tensorField >  interpolate (const interpolation< tensor > &) const
 interpolate field on surface
virtual void  print (Ostream &) const
 Write.

Constructor & Destructor Documentation

sampledTriSurfaceMesh ( const word &   name,
const polyMesh &   mesh,
const word &   surfaceName  
)

Construct from components.

Definition at line 70 of file sampledTriSurfaceMesh.C.

sampledTriSurfaceMesh ( const word &   name,
const polyMesh &   mesh,
const dictionary &   dict  
)

Construct from dictionary.

Definition at line 97 of file sampledTriSurfaceMesh.C.

~sampledTriSurfaceMesh (  ) [virtual]

Definition at line 125 of file sampledTriSurfaceMesh.C.


Member Function Documentation

TypeName ( "sampledTriSurfaceMesh"    )

Runtime type information.

bool needsUpdate (  ) const [virtual]

Does the surface need an update?

Implements sampledSurface.

Definition at line 131 of file sampledTriSurfaceMesh.C.

bool expire (  ) [virtual]

Mark the surface as needing an update.

May also free up unneeded data. Return false if surface was already marked as expired.

Implements sampledSurface.

Definition at line 137 of file sampledTriSurfaceMesh.C.

References clear(), and sampledSurface::clearGeom().

virtual const pointField& points (  ) const [inline, virtual]

Points of surface.

Implements sampledSurface.

Definition at line 142 of file sampledTriSurfaceMesh.H.

References PrimitivePatch< face,::Foam::List, pointField, point >::points().

virtual const faceList& faces (  ) const [inline, virtual]

Faces of surface.

Implements sampledSurface.

Definition at line 148 of file sampledTriSurfaceMesh.H.

References MeshedSurface< face >::faces().

Foam::tmp< Foam::scalarField > sample ( const volScalarField &   vField  ) const [virtual]

sample field on surface

Implements sampledSurface.

Definition at line 307 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::vectorField > sample ( const volVectorField &   vField  ) const [virtual]

sample field on surface

Implements sampledSurface.

Definition at line 317 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::sphericalTensorField > sample ( const volSphericalTensorField &   vField  ) const [virtual]

sample field on surface

Implements sampledSurface.

Definition at line 326 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::symmTensorField > sample ( const volSymmTensorField &   vField  ) const [virtual]

sample field on surface

Implements sampledSurface.

Definition at line 336 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::tensorField > sample ( const volTensorField &   vField  ) const [virtual]

sample field on surface

Implements sampledSurface.

Definition at line 346 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::scalarField > interpolate ( const interpolation< scalar > &   interpolator  ) const [virtual]

interpolate field on surface

Implements sampledSurface.

Definition at line 356 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::vectorField > interpolate ( const interpolation< vector > &   interpolator  ) const [virtual]

interpolate field on surface

Implements sampledSurface.

Definition at line 366 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::sphericalTensorField > interpolate ( const interpolation< sphericalTensor > &   interpolator  ) const [virtual]

interpolate field on surface

Implements sampledSurface.

Definition at line 375 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::symmTensorField > interpolate ( const interpolation< symmTensor > &   interpolator  ) const [virtual]

interpolate field on surface

Implements sampledSurface.

Definition at line 385 of file sampledTriSurfaceMesh.C.

Foam::tmp< Foam::tensorField > interpolate ( const interpolation< tensor > &   interpolator  ) const [virtual]

interpolate field on surface

Implements sampledSurface.

Definition at line 395 of file sampledTriSurfaceMesh.C.

void print ( Ostream &   os  ) const [virtual]

Write.

Reimplemented from sampledSurface.

Definition at line 403 of file sampledTriSurfaceMesh.C.

References Foam::name(), points, and List< T >::size().


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