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

Is the faceMask object in pEqn.h part of the dynamic mesh update?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2019, 09:27
Default Is the faceMask object in pEqn.h part of the dynamic mesh update?
  #1
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
Hello all,

I'm trying to find the reason for why "faceMask" is used in this piece of code?

Code:
surfaceScalarField faceMask(localMin<scalar>(mesh).interpolate(cellMask));

volScalarField rAU(1.0/UEqn.A());
surfaceScalarField rhorAUf("rhorAUf", faceMask*fvc::interpolate(rho*rAU));
volVectorField HbyA("HbyA", U);
HbyA = constrainHbyA(cellMask*rAU*UEqn.H(), U, p);
I'm guessing it's part of calculating boundaries for the moving mesh?

https://www.openfoam.com/documentati...8H_source.html


Here some more info from https://fossies.org/linux/OpenFOAM/s...eateCellMask.H

Code:
  34 Info<< "Creating cellMask field to block out hole cells\n" << endl;
   35 
   36 volScalarField cellMask
   37 (
   38     IOobject
   39     (
   40         "cellMask",
   41         runTime.timeName(),
   42         mesh,
   43         IOobject::NO_READ,
   44         IOobject::NO_WRITE
   45     ),
   46     mesh,
   47     dimensionedScalar("one", dimless, 1.0),
   48     zeroGradientFvPatchScalarField::typeName
   49 );
   50 
   51 #include "setCellMask.H"
   52 
   53 // *************************************************************************

What are hole cells?

Last edited by massive_turbulence; January 30, 2019 at 18:34. Reason: Added more code
massive_turbulence is offline   Reply With Quote

Old   February 1, 2019, 14:58
Default
  #2
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
I think I found what hole cells are.

" Holecutting boundaries are typically defined by solid wall boundary conditions".

from: "A High-Order Overset Method on Moving and Deforming Grids" by Jacob Crabill and Antony Jameson. http://aero-comlab.stanford.edu/Pape...r2016-3225.pdf

Basically if you have an object that's the negative space and it's a moving mesh, that's the hole cell.

master.img-000.jpg
massive_turbulence is offline   Reply With Quote

Reply

Tags
cell, interpolate, mesh, moving boundary


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
linearly accelerated object with dynamic mesh mohsenz_136 Main CFD Forum 1 January 12, 2024 12:58
[Other] Dynamic mesh & point displacement ( small part of an object) HELP Abderahmane OpenFOAM Meshing & Mesh Conversion 0 March 17, 2017 08:59
update monitors obligatery for dynamic mesh bia Fluent UDF and Scheme Programming 0 October 12, 2015 13:43
Dynamic Mesh tutorial Part I attachDetach hsieh OpenFOAM Running, Solving & CFD 5 October 11, 2012 15:00
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36


All times are GMT -4. The time now is 12:54.