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

Groovy Boundary condition -- POSSIBLE at INTERFACE?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2019, 05:42
Default Groovy Boundary condition -- POSSIBLE at INTERFACE?
  #1
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 355
Rep Power: 12
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
Hello Foamers,
I am not sure about my approach - fitting the interface conditions through GROOVY boundary conditions.The temperature is supplied from one end of the wall. My conditions at the interface (boiling plane) are as follows
Quote:
T= 100 (saturation temperature when phase change occurs)
@T=100 --> [w(moisture content)->at high (-) temperature side =0]
Based on it, mass and heat balances are calculated at interface as,
Quote:
Mass balance (r) = rho * alpha * (dx/dt) [kg/m2.s] (calculated at -> low (+) temperature side)
Heat balance (-K dT/dx) = (r) * latent heat [W/m2]
PS: The interface (boiling plane) is located based on sign changes technique as xb- & xb+ where, xb = position of boiling plane. What technique should I need to adopt here? I'm confused here.
REF - Clear details here in this MANUSCRIPT ~ http://sci-hub.tw/https://doi.org/10...361(83)90225-9 Images attached with schematic model and curve.

Kindly help me. Thank you^^
Attached Images
File Type: jpg B.C for evaporation.JPG (157.2 KB, 12 views)
File Type: png curve for boiling - Merrick.png (38.2 KB, 12 views)
Kummi is offline   Reply With Quote

Old   August 3, 2019, 06:54
Default
  #2
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 355
Rep Power: 12
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
While browsing I have gone through the thread below: - Where my expecting equations mentioned above seems to be fitted appropriately.
Evaporation due to Heat Transport using InterFoam (Correct Implementation?)
I have manipulated this code a bit from the previous thread.
CODE:
Quote:
volVectorField gradAlpha = fvc::grad(alpha1);
// to compute interface normal unit vector
volVectorField nHat = gradAlpha/(mag(gradAlpha) + interface.deltaN());
// compute interfacial area = magnitude of grad(alpha1)*volume of cell
volScalarField alpha1Prime = mag(gradAlpha);
// set liquid and interfacial temperature to Tsat
forAll(mesh.cells(), celli)
{
if (alpha1[celli] <= scalar(0.1)) //10% of moisture
{
T[celli] = Tsat.value(); //Tsat = 100deg
alpha1Prime[celli] = scalar(0); //Moisture content = 0
}
}
// Compute mass source field (mass balance)
//mDot = -(kappa/evapEnthalpy)*(fvc::grad(T) & nHat)*alpha1Prime;
mDot = -(rho*alpha1*interface_VELOCITY);

// Compute energy source field using enthalpy of evaporation (energy balance)
hDot = -evapEnthalpy*mDot;
Heat balance (flux) of boiling is expressed in unit of W/m2 ==> source term in energy equation carries the unit W/m3 ~ And I am confused here as how to implement this equation as a source term in my work?

So, should the mass and energy balance equations need to be fitted as boundary condition (or) interface condition? How and where the above set of coding can be fitted in OpenFOAM and compiled appropriately ?

ENERGY EQU: rho*Cp*(delT/delt) = del/delx[K*delT/delx ] + r*cp*delT/delx + rho*delQ/delT (W/m3)

Kindly someone share ideas please. Thank you

Last edited by Kummi; August 3, 2019 at 08:10.
Kummi is offline   Reply With Quote

Old   August 4, 2019, 06:17
Default interfaceProperties
  #3
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 355
Rep Power: 12
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
The above coding comes under interfaceProperties (~/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/interfaceProperties)
Quote:
{
const fvMesh& mesh = alpha1.mesh();
const surfaceVectorField& Sf = mesh.Sf();

// Cell gradient of alpha
volVectorField gradAlpha = fvc::grad(alpha1);

// Interpolated face-gradient of alpha
surfaceVectorField gradAlphaf(fvc::interpolate(gradAlpha));

// to compute interface normal unit vector
//volVectorField nHat = gradAlpha/(mag(gradAlpha) + interface.deltaN());

// Face unit interface normal flux
// nHatf_ = nHatfv & Sf;

// Face unit interface normal
//surfaceVectorField nHatfv(gradAlphaf/(mag(gradAlphaf) + deltaN_));

// compute interfacial area = magnitude of grad(alpha1)*volume of cell
//volScalarField alpha1Prime = mag(gradAlpha);
surfaceScalarField alpha1Prime = mag(gradAlpha);

// set liquid and interfacial temperature to Tsat
forAll(mesh.cells(), celli)
{
if (alpha1[celli] <= scalar(0.1)) //10% of moisture
{
T[celli] = Tsat.value(); //Tsat = 100deg
alpha1Prime[celli] = scalar(0); //Moisture content = 0
}
}
// Compute mass source field (mass balance)
//mDot = -(kappa/evapEnthalpy)*(fvc::grad(T) & nHat)*alpha1Prime;
mDot = -(rho*alpha1*interface_VELOCITY);

// Compute energy source field using enthalpy of evaporation (energy balance)
hDot = -evapEnthalpy*mDot;
No calculation related to contact angle here.


The above code is not compiled yet, but it should be calculated for mass and energy balance at the interface --> moisture evaporation from the wet COAL

I should still explore more for the betterment of my solution.
Kummi 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
How to use the CFX periodic interface zhihuawan CFX 61 January 15, 2018 17:20
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


All times are GMT -4. The time now is 00:57.