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

Printing interface area

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 31, 2021, 06:00
Default Printing interface area
  #1
Member
 
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 96
Rep Power: 4
saicharan662000@gmail.com is on a distinguished road
Hello guys,
I got interface area code from some resource. I added It in twoPhaseMixtureThermo.C and I declared the Interface area in twoPhaseMixtureThermo.H . These files are in compressible interfoam solver folder . can anyone tell me How to print the interface area and How to make it visible in paraFoam. The solver compiled well but Interface area is not getting displayed.



I am attaching the code here
Foam::tmp<Foam::volScalarField>
Foam::twoPhaseMixtureThermo::interfaceArea() const
{
// return the interfacial area based on model for interfacial area
// returns dimensions Area

// model based on regular volume cells, taking the largest cut area
// as maximum for area, linear increase and decrease with alpha
const volScalarField& cellVolume =
alpha1().db().lookupObject<volScalarField>("cellVo lu");
volScalarField limitedAlpha1 = min(max(alpha1(), scalar(0)), scalar(1));

const dimensionedScalar
areaFactor("areaFactor",dimensionSet(0,2,0,0,0,0,0 ), 0.0);

volScalarField interfaceArea = alpha1() * areaFactor;
volScalarField maxArea = alpha1() * areaFactor;

maxArea = sqrt(3.0)*pow(cellVolume,(2.0/3.0));
return tmp<volScalarField>
(
(neg(limitedAlpha1-0.5)*maxArea*2.0*limitedAlpha1) +
(pos(limitedAlpha1-0.5)*maxArea*(-2.0*( limitedAlpha1 - 1.0)))
);

}
It's urgent. can anyone help me with this.
saicharan662000@gmail.com is offline   Reply With Quote

Old   January 7, 2022, 06:12
Smile
  #2
Member
 
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 96
Rep Power: 4
saicharan662000@gmail.com is on a distinguished road
Problem solved.

Last edited by saicharan662000@gmail.com; January 19, 2022 at 02:29.
saicharan662000@gmail.com is offline   Reply With Quote

Reply

Tags
opeanfoam, openfaom-8

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Domain interface at different area CFXer CFX 4 July 21, 2020 10:43
Wind turbine simulation Saturn CFX 58 July 3, 2020 02:13
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Two phase interface area Blackhawks84 Fluent UDF and Scheme Programming 0 February 5, 2013 15:47
CFX Solver Memory Error mike CFX 1 March 19, 2008 08:22


All times are GMT -4. The time now is 22:29.