calcAlphas() of multiphaseSystem
hi,
I don`t understand method calcAlphas() of multiphaseSystem Code:
void Foam::multiphaseSystem::calcAlphas() If this is right I don`t understand what is calculated with this procedure. As far as I understand line 54 would technically mean the following Code:
volScalarField alphas_ = phasefraction1*0 + phasefraction2*1 + phasefraction3*2 ... What is calculated here? greetings maybee |
The sum of the volume fractions of all phases must be 1. There is little information in field that is 1 throughout the domain.
The intention behind alphas is to provide one field to visualize all phases. If you have a water-oil-air system, you have three volume fraction fields. Three fields are hard to visualize in one image. This is where alphas comes to the rescue. In the alphas field 0 means water, 1 means oil and 2 means air. This way you can depict all phases at once. |
Thx, nice idea, but I am thinking about the following now:
Let s assume we have initial water-oil-air alpha fields like Code:
water Code:
alphas_ Isn`t this some kind of limitating at least the intitial conditions of the cells if only 0 or 1 for each phase in a cell were possible? |
1 Attachment(s)
Yes, you can have values in between. I attached the alphas field from the damBreak4phase tutorial case of multiphaseEulerFoam.
The phases are water-oil-mercury-air. If you have any doubts or ideas. Play with the tutorial case. |
All times are GMT -4. The time now is 09:59. |