Skip to main content

DisplayBoundaryFacetData

Inheritence

This method is inherited from the AbstractMesh class.

DisplayBoundaryFacetData

Displays information about boundary facet data in the mesh.

Interface

INTERFACE
MODULE SUBROUTINE mesh_DisplayBoundaryFacetData(obj, msg, unitno)
CLASS(Mesh_), INTENT(IN) :: obj
CHARACTER(*), INTENT(IN) :: msg
INTEGER(I4B), OPTIONAL, INTENT(IN) :: unitno
END SUBROUTINE mesh_DisplayBoundaryFacetData
END INTERFACE

Arguments

  • obj: The AbstractMesh_ object containing facet data to display
  • msg: A message to display at the beginning of the output
  • unitno: Optional output unit number (defaults to stdout if not provided)

Description

This method displays boundary facet data, specifically showing both regular boundary facets (BOUNDARY_ELEMENT) and domain boundary facets (DOMAIN_BOUNDARY_ELEMENT). For each facet, it uses FacetData_Display_Filter twice:

  1. First to display facets of type BOUNDARY_ELEMENT (facets at mesh boundaries)
  2. Then to display facets of type DOMAIN_BOUNDARY_ELEMENT (facets at domain boundaries)

This provides a comprehensive view of all boundary facets in the mesh, showing:

  • Master cell information (boundary facets typically have only a master cell)
  • Local facet ID within the cell
  • Node connectivity
  • Boundary conditions (if applicable)

A blank line is inserted between facet entries for better readability.

Example 1

This example shows how to use DisplayBoundaryFacetData method to display the content of boundary facet data.

!> author: Vikas Sharma, Ph. D.
! date: 2025-06-02
! summary: This example shows how to use `DisplayBoundaryFacetData`
! method to display the content of boundary facet data.

PROGRAM main
USE FEMesh_Class
USE HDF5File_Class
USE GlobalData

IMPLICIT NONE

TYPE( FEMesh_ ) :: obj
TYPE( HDF5File_ ) :: meshfile
INTEGER( I4B ), ALLOCATABLE :: nptrs( : )
INTEGER( I4B ) :: iel, ii
CHARACTER( LEN=* ), PARAMETER :: filename="./meshdata/small_tri3_mesh.h5"

! Initiate and open the mesh file which is in [[HDF5File_]] format.
! Then, create an instance of mesh.

CALL meshfile%Initiate( FileName=filename, MODE="READ" )
CALL meshfile%Open()
CALL obj%Initiate(hdf5=meshfile, dim=2)

! Displaying the node data.

CALL obj%DisplayBoundaryFacetData( "Boundary facet data" )

CALL obj%Deallocate()
CALL meshfile%Deallocate()
END PROGRAM main

Example 2

This example shows how to use DisplayBoundaryFacetData method to display the boundary facet data.

In this example we do create an instance of Domain, therefore, we build the information about DOMAIN_BOUNDARY_ELEMENT and BOUNDARY_ELEMENT.

!> author: Vikas Sharma, Ph. D.
! date: 2025-06-02
! summary: This example shows how to use `DisplayBoundaryFacetData`
! method to display the boundary facet data.
! In this example we do create an instance of Domain, therefore,
! we build the information about `DOMAIN_BOUNDARY_ELEMENT` and `BOUNDARY_ELEMENT`.

PROGRAM main
use FEMesh_Class
use FEDomain_Class
use HDF5File_Class
use GlobalData

IMPLICIT NONE

CLASS( AbstractMesh_ ), POINTER :: obj
TYPE( FEDomain_ ) :: dom
TYPE( HDF5File_ ) :: domainFile
INTEGER( I4B ) :: iel, ii
CHARACTER( LEN=* ), PARAMETER :: filename="./meshdata/small_tri3_mesh.h5"

CALL domainFile%Initiate( FileName=filename, MODE="READ" )
CALL domainFile%Open()
CALL dom%Initiate(hdf5=domainFile, group="" )

obj => dom%GetMeshPointer(dim=dom%getNSD(), entityNum=1)

CALL obj%DisplayBoundaryFacetData( "BoundaryFacetData = " )

CALL obj%Deallocate()
CALL domainFile%Deallocate()
END PROGRAM main