|
[Sponsors] |
December 31, 2021, 06:00 |
Printing interface area
|
#1 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
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. |
|
January 7, 2022, 06:12 |
|
#2 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Problem solved.
Last edited by saicharan662000@gmail.com; January 19, 2022 at 02:29. |
|
Tags |
opeanfoam, openfaom-8 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
Domain interface at different area | CFXer | CFX | 4 | July 21, 2020 10:43 |
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 |