CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

fvBoundayMesh vs fvPatch

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By granzer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2020, 18:36
Default fvBoundayMesh vs fvPatch
  #1
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
I read that "OpenFOAMŪ decomposes the boundary mesh into patches stored in a list
designated by polyPatchList under the class polyBoundaryMesh. Then, similar to
interior mesh, a specialized class denoted by fvBoundaryMesh is derived from
polyBoundaryMesh that inherits its functionalities and expands on it to include
specific functions and data needed for finite-volume discretization. As for internal
discretization
, a similar hierarchy of classes composed of primitivePatch,
polyPatch, and fvPatch is defined for boundary discretization.These classes are
specific for the boundary mesh and contain the geometric information of each
boundary. But it is the fvPatch that is used to implement the boundary conditions
during the finite volume discretization. Figure 7.9 presents a schematic of the basic
mesh description used in OpenFOAMŪ."
Here what does internal discritization and boundary discritization mean??. Also, what is the difference between fvBoundayMesh and fvPatch?
granzer is offline   Reply With Quote

Old   December 8, 2020, 02:27
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
I suggest this excellent book where you get all your answers to your questions:


https://www.springer.com/de/book/9783319168739


with a bit google search you can also find a pdf
mAlletto is offline   Reply With Quote

Old   December 8, 2020, 03:00
Default
  #3
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
I suggest this excellent book where you get all your answers to your questions:


https://www.springer.com/de/book/9783319168739


with a bit google search you can also find a pdf
The paragraph that I have quoted is from that book. It is an excellent book and cleared a lot of my doubts. But I am not able to figure out what this para means.
granzer is offline   Reply With Quote

Old   December 8, 2020, 03:29
Default
  #4
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
From https://www.openfoam.com/documentati...ndaryMesh.html


and https://www.openfoam.com/documentati...h.html#details


you see that fvBoundaryMesh inherits from a fvPatchList and has some additional functions.


The rest is up to you...
mAlletto is offline   Reply With Quote

Old   December 26, 2020, 06:15
Default
  #5
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
From https://www.openfoam.com/documentati...ndaryMesh.html


and https://www.openfoam.com/documentati...h.html#details


you see that fvBoundaryMesh inherits from a fvPatchList and has some additional functions.


The rest is up to you...
Hello Mr.Michael, can you please tell me if my understanding is right.
A 'CFD mesh' in OF is made up of points, faces cells etc. But the faces that make up the boundary of the domain need to be given special care so the boundary faces are dealt with separately from the internal faces so as to make it easy to apply boundary conditions.
If I start at the 'primitiveMesh' class, it's just a class that defines how everything needs to be connected(ie how points are connected to make faces...how faces are connected to make cells etc) to form the mesh that defines the computational domain. So this primitiveMesh class deals with giving the topology of the mesh. Along with defining topological info it also has funcitons to give primitive geometrical info such as area of face, volume of cells etc.
The primitiveMesh class is further extended by the polyMesh calss (this is the class that is the main mesh class) which is used to build mesh with polyhedral-cells. More importatnly primitiveMesh class dosnt have any special way to of dealing with the boundary, but its child the polyMesh class does deal with the boundary of the domain as a seperate entity. The polyMesh class employes a polyBoundaryMesh class to deal with the boundaries.

Now, in OF the (closed)boudary of the of a computational domain is broken down into seperate 'patches' and each of these patches are broken down into individual boundary 'faces'. This is done so that implimentation of boundary conditions are dealt with easily. The polyBoundaryMesh has a list of these 'patches' (the patches are called polyPatch), called the 'polyPatchList', that make up the entire boudanry of the domain. The polyPatch is actualy a seperate class which deals with faces that make up the patch. So, group of faces make up a patch (dealt with by polyPatch class) -> group of patches makes list called polyPatchList and this list is employed by polyBoundaryMesh-> the polyBoundaryMesh is inturn employed by the polyMesh.

All the classes mentioned above dosnt take into accoun any perticular disceitization scheme. To make is easy to employ a perticular discritization scheme, say the FV shchem, the polyMesh calss is further extended by the fvMesh class. Similar to polyMeshClass the fvMesh class employes a seperate class, the fvBoundaryMesh(child of polyboundaryMesh), to deal with the domain boundary. The fvBoundaryMesh also has a list of patches (now called the fvPatch) called the fvPatchList. Each of the fvPatch (this is not a child of ployPatch, but does take a polyPatch as input) is made up of groups of faces. The fvPatch is the one used to impliment different kinds of boundary conditions (look into fvPatchField).

Ref: 'Draft version for mesh classes documentation
primitiveMesh, polyMesh, fvMesh -
The OpenFOAM mesh hierarchy'
'The Finite Volume Method
in Computational Fluid
Dynamics:
An Advanced Introduction
with OpenFOAMŪ and Matlab'
2538sukham likes this.
granzer is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FvPatch operations maka OpenFOAM Post-Processing 4 July 10, 2008 07:36
How to use findCelloctree chen_jun OpenFOAM Running, Solving & CFD 11 December 20, 2005 09:18


All times are GMT -4. The time now is 20:04.