|
[Sponsors] |
March 23, 2016, 13:02 |
VOF two phase patching region issue
|
#1 |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
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. |
|
March 23, 2016, 16:33 |
|
#2 |
Senior Member
Jordi Pina
Join Date: Mar 2015
Posts: 157
Rep Power: 11 |
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".
|
|
March 23, 2016, 21:41 |
|
#3 |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
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!
|
|
March 24, 2016, 02:53 |
|
#4 |
Senior Member
Jordi Pina
Join Date: Mar 2015
Posts: 157
Rep Power: 11 |
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 |
|
March 24, 2016, 04:46 |
|
#5 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
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. |
|
March 24, 2016, 06:05 |
|
#6 | |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
Quote:
|
||
March 24, 2016, 06:06 |
|
#7 | |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
Quote:
|
||
March 24, 2016, 06:13 |
|
#8 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
Did you click 'mark' and not 'adapt'?
Second, does the interface show you a message that a certain number of cells has been marked? |
|
March 24, 2016, 06:16 |
|
#9 |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
'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.
|
|
March 24, 2016, 06:22 |
|
#10 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
You don't have to click adapt, only mark. Does it work then?
|
|
March 24, 2016, 16:08 |
|
#11 |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
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
|
|
March 25, 2016, 03:13 |
|
#12 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
both should work; as long as you don't have to make major changes, I'd say import is the quickest way.
|
|
March 28, 2016, 10:17 |
|
#13 |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
||
March 29, 2016, 05:48 |
|
#14 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
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) |
|
April 1, 2016, 16:27 |
|
#15 | |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
Quote:
|
||
April 1, 2016, 17:32 |
|
#16 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
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! |
|
April 1, 2016, 18:04 |
|
#17 | |
New Member
Join Date: Feb 2016
Posts: 19
Rep Power: 10 |
Quote:
|
||
|
|
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 |