libMesh
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
libMesh::BoundaryVolumeSolutionTransfer Class Reference

SolutionTransfer derived class which is specifically for transferring solutions back and forth between a VolumeMesh and its associated BoundaryMesh. More...

#include <boundary_volume_solution_transfer.h>

Inheritance diagram for libMesh::BoundaryVolumeSolutionTransfer:
[legend]

Public Member Functions

 BoundaryVolumeSolutionTransfer (const Parallel::Communicator &comm_in)
 
virtual ~BoundaryVolumeSolutionTransfer ()
 
virtual void transfer (const Variable &from_var, const Variable &to_var) override
 Transfer values from a Variable in a System associated with a volume mesh to a Variable in a System associated with the corresponding BoundaryMesh, or vice-versa. More...
 
const Parallel::Communicatorcomm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Protected Attributes

const Parallel::Communicator_communicator
 

Private Member Functions

void transfer_volume_boundary (const Variable &from_var, const Variable &to_var)
 Transfer values from volume mesh to boundary mesh. More...
 
void transfer_boundary_volume (const Variable &from_var, const Variable &to_var)
 Transfer values from boundary mesh to volume mesh. More...
 

Detailed Description

SolutionTransfer derived class which is specifically for transferring solutions back and forth between a VolumeMesh and its associated BoundaryMesh.

That is, when calling transfer() below, we must have either:

.) Transfer from the boundary of a VolumeMesh to its associated BoundaryMesh, or .) Transfer from a BoundaryMesh to its corresponding VolumeMesh.

Because of this assumption, we can use the interior_parent() to directly define the mapping between solutions. The transfer() function internally determines which direction the transfer is going, and calls the appropriate algorithm internally.

Author
Xikai Jiang
John W. Peterson
Date
2016

Definition at line 47 of file boundary_volume_solution_transfer.h.

Constructor & Destructor Documentation

◆ BoundaryVolumeSolutionTransfer()

libMesh::BoundaryVolumeSolutionTransfer::BoundaryVolumeSolutionTransfer ( const Parallel::Communicator comm_in)

Definition at line 50 of file boundary_volume_solution_transfer.h.

50  :
51  SolutionTransfer(comm_in)
52  {}
SolutionTransfer(const libMesh::Parallel::Communicator &comm_in)

◆ ~BoundaryVolumeSolutionTransfer()

virtual libMesh::BoundaryVolumeSolutionTransfer::~BoundaryVolumeSolutionTransfer ( )
virtual

Definition at line 54 of file boundary_volume_solution_transfer.h.

54 {}

Member Function Documentation

◆ comm()

const Parallel::Communicator& libMesh::ParallelObject::comm ( ) const
inherited

◆ n_processors()

processor_id_type libMesh::ParallelObject::n_processors ( ) const
inherited
Returns
The number of processors in the group.

Definition at line 93 of file parallel_object.h.

References libMesh::ParallelObject::_communicator, and libMesh::Parallel::Communicator::size().

Referenced by libMesh::MeshBase::partition().

94  { return cast_int<processor_id_type>(_communicator.size()); }
processor_id_type size() const
Definition: communicator.h:175
const Parallel::Communicator & _communicator

◆ processor_id()

processor_id_type libMesh::ParallelObject::processor_id ( ) const
inherited

◆ transfer()

virtual void libMesh::BoundaryVolumeSolutionTransfer::transfer ( const Variable from_var,
const Variable to_var 
)
overridevirtual

Transfer values from a Variable in a System associated with a volume mesh to a Variable in a System associated with the corresponding BoundaryMesh, or vice-versa.

Implements libMesh::SolutionTransfer.

◆ transfer_boundary_volume()

void libMesh::BoundaryVolumeSolutionTransfer::transfer_boundary_volume ( const Variable from_var,
const Variable to_var 
)
private

Transfer values from boundary mesh to volume mesh.

Called when needed from transfer().

◆ transfer_volume_boundary()

void libMesh::BoundaryVolumeSolutionTransfer::transfer_volume_boundary ( const Variable from_var,
const Variable to_var 
)
private

Transfer values from volume mesh to boundary mesh.

Called when needed from transfer().

Member Data Documentation

◆ _communicator

const Parallel::Communicator& libMesh::ParallelObject::_communicator
protectedinherited

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