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

Cutting a Cell with a surface. (Splitting a cell in two)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2020, 08:53
Default Cutting a Cell with a surface. (Splitting a cell in two)
  #1
Member
 
Fabien Robaux
Join Date: Oct 2016
Posts: 51
Rep Power: 9
frobaux is on a distinguished road
Hello everyone,

Does an utility exists to split a cell which is cut by a surface?
Actually, what I'm interested about is the volume left on each side.


I currently have identified which cells/faces/edges are "cut" by my surface (using mainly cellClassification). I still need to compute the volumes on each side of the triSurface, but I have to admit, I have not clue on how to do that.

Is there an utility to do that? I would take any lead, or idea!



Thank you a lot for you help!
frobaux is offline   Reply With Quote

Old   February 14, 2020, 15:26
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
For a given cell and an arbitrary defined surface passing through the cell in an arbitrary orientation, you want to calculate the volume portions of the cell separated by the surface?

I dont think there is a utility for that, which seems to be quite 'niche' to me unless I correctly understand it. You may need to hack the source code.

Curious, what is the application related to this?
HPE is offline   Reply With Quote

Old   February 15, 2020, 03:18
Default
  #3
Member
 
Fabien Robaux
Join Date: Oct 2016
Posts: 51
Rep Power: 9
frobaux is on a distinguished road
Well, It is exactly that. I'm currently trying to devellop it with a particular hypothesis:
The surface inside the cut cell is planar. (so that the intersection points with the edges defines a face). In my case that hypothesis is true but it probably won't always be.
Well even like that is not that simple to write.



The application is to convert a free surface defined by a surface (direct method) into a volume of fluid method (ie. obtain the alpha.water field, representing the volume fraction of a given cell which is under water).


I hope I was clear!


Kind regards!
Fabien
frobaux 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
[snappyHexMesh] snappyHexMesh generates not planar surface krzychu111 OpenFOAM Meshing & Mesh Conversion 2 April 23, 2020 16:38
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
PEM fuel cell simulation pchoopanya Mesh Generation & Pre-Processing 1 February 29, 2016 23:56
[snappyHexMesh] the differences between "Cell splitting at feature edge"& "Cell splitting at surface" s.m OpenFOAM Meshing & Mesh Conversion 0 October 12, 2013 07:43
Macro existing for calculating a cell surface? maximeg OpenFOAM Post-Processing 7 July 13, 2010 13:30


All times are GMT -4. The time now is 16:23.