CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent Multiphase

VOF two phase patching region issue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2016, 13:02
Default VOF two phase patching region issue
  #1
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Hi all,
I have a simple model in which I have a tube with blood flowing through. At the outlet I have applied a pressure (suction). The goal is to simulate the suction of a blood clot. The clot will be patched in as a region. The clot has the same properties as the blood but just higher viscosity and density. Blood is primary phase and clot secondary. When I try to patch in a region for the clot, there is nothing under 'registers to patch'. See the attached image. Any help would be much appreciated.
Attached Images
File Type: jpg fluent screenshot.jpg (85.0 KB, 44 views)
shotta287 is offline   Reply With Quote

Old   March 23, 2016, 16:33
Default
  #2
Senior Member
 
Jordi Pina
Join Date: Mar 2015
Posts: 157
Rep Power: 11
jpina is on a distinguished road
You need to have different a part for each zone in ANSYS Design Modeler. And once in Fluent in Mesh Interface you'll have to generate a mesh interface with "match".
jpina is offline   Reply With Quote

Old   March 23, 2016, 21:41
Default
  #3
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by jpina View Post
You need to have different a part for each zone in ANSYS Design Modeler. And once in Fluent in Mesh Interface you'll have to generate a mesh interface with "match".
Thanks for the suggestion. Could you elaborate on that please? What do you mean by different part for each zone? Please excuse my amateur questions, I am a beginner to the software!
shotta287 is offline   Reply With Quote

Old   March 24, 2016, 02:53
Default
  #4
Senior Member
 
Jordi Pina
Join Date: Mar 2015
Posts: 157
Rep Power: 11
jpina is on a distinguished road
Have you used design modeler for creating the CAD?

Create the model for what you want initially to be air.

Freeze it (look at the options)

Create the model for what you want initially to be blood.

Freeze it.

Down you should have two parts.

At the afternoon I could send you a snapshot
jpina is offline   Reply With Quote

Old   March 24, 2016, 04:46
Default
  #5
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
You can also go to region > adapt > set the extent of the region > mark

There should then be a message 'X cells marked for refinement' or so. Go to initialize, patch and it should pop up there. Of course this way of patching is limited to simple shapes (box, sphere), so if you want to initialize a complex shape, you are better of following the instructions above.
CeesH is offline   Reply With Quote

Old   March 24, 2016, 06:05
Default
  #6
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by jpina View Post
Have you used design modeler for creating the CAD?

Create the model for what you want initially to be air.

Freeze it (look at the options)

Create the model for what you want initially to be blood.

Freeze it.

Down you should have two parts.

At the afternoon I could send you a snapshot
I made this simple model on designmodeler in order to see if the patching region method works. I have more complex geometry waiting to be imported in from Solidworks!
shotta287 is offline   Reply With Quote

Old   March 24, 2016, 06:06
Default
  #7
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by CeesH View Post
You can also go to region > adapt > set the extent of the region > mark

There should then be a message 'X cells marked for refinement' or so. Go to initialize, patch and it should pop up there. Of course this way of patching is limited to simple shapes (box, sphere), so if you want to initialize a complex shape, you are better of following the instructions above.
This is the method I am currently trying. After marking a cylindrical region, when I try to patch it, nothing shows up under 'registers to patch'.
shotta287 is offline   Reply With Quote

Old   March 24, 2016, 06:13
Default
  #8
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Did you click 'mark' and not 'adapt'?
Second, does the interface show you a message that a certain number of cells has been marked?
CeesH is offline   Reply With Quote

Old   March 24, 2016, 06:16
Default
  #9
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by CeesH View Post
Did you click 'mark' and not 'adapt'?
Second, does the interface show you a message that a certain number of cells has been marked?
'Mark' first, then 'adapt'. Yes a message does come up saying 'X number of cells marked for refining, 0 marked for coarsening'. For some reason this region is not showing up under registers to patch.
shotta287 is offline   Reply With Quote

Old   March 24, 2016, 06:22
Default
  #10
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
You don't have to click adapt, only mark. Does it work then?
CeesH is offline   Reply With Quote

Old   March 24, 2016, 16:08
Default
  #11
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by CeesH View Post
You don't have to click adapt, only mark. Does it work then?
Thank you, that works! Can't believe such a simple thing was causing me to stall. I have another question which I hope you may be able to answer; I have geometry waiting to be imported into designmodeler for some cfd analysis. Is it better to replicate this geometry in designmodeler or is it fine if I just import it over? Many thanks once again
shotta287 is offline   Reply With Quote

Old   March 25, 2016, 03:13
Default
  #12
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
both should work; as long as you don't have to make major changes, I'd say import is the quickest way.
CeesH is offline   Reply With Quote

Old   March 28, 2016, 10:17
Default
  #13
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by CeesH View Post
both should work; as long as you don't have to make major changes, I'd say import is the quickest way.
Thank you for your help, much appreciated. Is there any way I can set up FLUENT to tell me the removal time of the clot?
shotta287 is offline   Reply With Quote

Old   March 29, 2016, 05:48
Default
  #14
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
I'm not aware of any direct method to calculate that. What you can do is write a UDF that calculates the droplet center-of-mass (execute-at-end macro should work, calculates it at the end of each timestep); from the center of mass vs time you have the position, and can also calculate velocity and acceleration.

(if you don't want to use UDF, you can also export the phase-field every x timesteps and do the calculation in post-processing, i.e. MATLAB. but for large 3D simulations this becomes time- and memoryconsuming really, really quickly)
CeesH is offline   Reply With Quote

Old   April 1, 2016, 16:27
Default
  #15
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by CeesH View Post
I'm not aware of any direct method to calculate that. What you can do is write a UDF that calculates the droplet center-of-mass (execute-at-end macro should work, calculates it at the end of each timestep); from the center of mass vs time you have the position, and can also calculate velocity and acceleration.

(if you don't want to use UDF, you can also export the phase-field every x timesteps and do the calculation in post-processing, i.e. MATLAB. but for large 3D simulations this becomes time- and memoryconsuming really, really quickly)
Is it possible to set up a phase 2 volume fraction monitor against flow time?
shotta287 is offline   Reply With Quote

Old   April 1, 2016, 17:32
Default
  #16
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
yes, if you run transient, you can use surface monitors (for point, line or surface-average monitoring), or volume monitors (to get the volume integral or average over a volumetric section, or the whole volume).

Set up either of them on the locations you want, set them per timestep instead of per iteration, and plot flow-time or timestep on the x-axis, and you are good to go!
CeesH is offline   Reply With Quote

Old   April 1, 2016, 18:04
Default
  #17
New Member
 
Join Date: Feb 2016
Posts: 19
Rep Power: 10
shotta287 is on a distinguished road
Quote:
Originally Posted by CeesH View Post
yes, if you run transient, you can use surface monitors (for point, line or surface-average monitoring), or volume monitors (to get the volume integral or average over a volumetric section, or the whole volume).

Set up either of them on the locations you want, set them per timestep instead of per iteration, and plot flow-time or timestep on the x-axis, and you are good to go!
Thanks for your reply I am running transient with non-iterative time advancement. What volume monitor settings would be ideal to see the clot removal time? I don't understand the meaning of volume integral and so forth. Also is it possible to save the graph for viewing later on? At the moment it is only printing to the console so i see the graph being produced in real time as the solution is being calculated. Please see the attached screenshot. Is there a way to plot volume fraction phase 2 from 1-0 against flow time? Thank you again!
Attached Images
File Type: png clot extraction graph.png (22.0 KB, 11 views)
shotta287 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
Phase velocity in VOF model UDF baechtel Fluent UDF and Scheme Programming 2 August 4, 2019 12:17
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 10:48
[swak4Foam] mass conservation of solid phase violated when using groovyBC with twoPhaseEulerFoam xpqiu OpenFOAM Community Contributions 8 June 17, 2015 03:08
Extract primary phase thread in VOF with 3 phases Eric FLUENT 2 July 7, 2011 03:22
Moving mesh or VOF? Giovanni Main CFD Forum 16 September 24, 2001 09:25


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