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

boundary condition for alpha

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2020, 23:41
Default boundary condition for alpha
  #1
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
cylinder-01.jpg

cylinder-06.jpg

alpha.txt

Hi everyone,

Hope that you are fine!

I am facing problem with boundary condtion for alpha in simulation of flow with a cylinder near interface.
The simulated results of alpha is wrong and I think that is because of boundary condition.
Could someone kindly help me to fix it?

Thanks
ndtrong is offline   Reply With Quote

Old   April 14, 2020, 17:22
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
what is the driving force of the simulation? how are the BCs for the other quantities?
HPE is offline   Reply With Quote

Old   April 14, 2020, 21:07
Default
  #3
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Quote:
Originally Posted by HPE View Post
what is the driving force of the simulation? how are the BCs for the other quantities?
Thanks for your comment,

The boundary conditions for the other quantities is as below:
For p_rgh
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedFluxPressure;
value $internalField;
}

outlet
{
type zeroGradient;
}

atmosphere
{
type totalPressure;
p0 uniform 0;
}

hull
{
type fixedFluxPressure;
value $internalField;
}

bottom
{
type fixedFluxPressure;
value $internalField;
}
}

// ************************************************** *********************** //


For U

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Umean 0.395;
mUmean -0.395;

dimensions [0 1 -1 0 0 0 0];

internalField uniform ($Umean 0 0);

boundaryField
{
// #includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type outletPhaseMeanVelocity;
alpha alpha.water;
Umean $Umean;
value $internalField;
}

atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}

hull
{
type movingWallVelocity;
value uniform (0 0 0);
}

bottom
{
type noSlip;
}
}


// ************************************************** *********************** //
For k
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0.00015;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}

atmosphere
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}

hull
{
type kqRWallFunction;
value $internalField;
}
bottom
{
type kqRWallFunction;
value $internalField;
}
}

// ************************************************** *********************** //
For omega
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 -1 0 0 0 0];

internalField uniform 2;

boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}

atmosphere
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}

hull
{
type omegaWallFunction;
value $internalField;
}

bottom
{
type omegaWallFunction;
value $internalField;
}
}



// ************************************************** *********************** //
Attached Files
File Type: txt p_rgh.txt (1.4 KB, 0 views)
File Type: txt U.txt (1.6 KB, 0 views)
File Type: txt omega.txt (1.5 KB, 0 views)
File Type: txt k.txt (1.5 KB, 0 views)
ndtrong 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 07:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 18:34
Radiation interface hinca CFX 15 January 26, 2014 17:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44


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