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

How to write out a bubble diameter and lift force field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2020, 08:06
Default How to write out a bubble diameter and lift force field
  #1
New Member
 
anonymous
Join Date: May 2015
Posts: 2
Rep Power: 0
localhost9527 is on a distinguished road
Hello Foamers,

This is my first time asking a question here, so please be patient with any mistakes.

System:
OpenFOAM 8
Ubuntu 20.04LTS

Problem-Statement:
I am trying to use multiphaseEulerFoam solver to solve a wall boiling problem.
The tutorials worked but I want more field information such as bubble diameter distribution, lift force distribution.
It seems that the solver does not write out there fields.
How can I write out these information?
thx!
localhost9527 is offline   Reply With Quote

Old   January 17, 2021, 16:18
Default Bubble diameter distribution
  #2
Member
 
Anastasios
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ageorg is on a distinguished road
I am also after the same thing did you manage to find anything?
ageorg is offline   Reply With Quote

Old   January 17, 2021, 17:14
Default
  #3
Member
 
Fabian Friberg
Join Date: Dec 2020
Posts: 31
Rep Power: 5
lumpor is on a distinguished road
I am also quite new to openfoam and so I don't have any experience doing this myself, but I think you need to make a new solver based on multiPhaseEulerfoam and make a new solver where you add new IOobjects.



Something roughly like:
Code:
 volScalarField bubbleDiameter
 
 (
 
     IOobject
 
     (
 
         "bubbleDiameter",
 
         runTime.timeName(),
 
         mesh,
 
         IOobject::NO_READ,
 
         IOobject::AUTO_WRITE
 
     ),
 
     mesh,
 
     dimensionedScalar(dimLength, zero)
 
 );
And then set it to the bubble diameter each iteration.



You can read how IOObjects work here.


You can look at the createFields.h files of different existing solvers to see how they did it.


Sorry if this wasn't what you were looking for.
lumpor 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
Degassing BC with Algebraic Slip Model Antanas CFX 31 April 15, 2015 05:59
Multiphase simulation of bubble rising Niru CFX 5 November 25, 2014 13:57
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Tomiyama wall lubrication force Edy OpenFOAM 10 December 13, 2010 11:41
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 05:44


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