|
[Sponsors] |
Dual Grid Multiphase solver Development like M.Hermann' RGLS |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 131
Rep Power: 9 ![]() |
Hello All,
I am trying to develop a multiphase flow solver where the concept is to solve the advection equation of VOF on a finer mesh than the Navier Stokes mesh. So as a very basic problem I am solving the RayleighPlateau Instability problem with zero surface tension coefficient. The finer mesh and coarser mesh are also kept identical currently. So all I am doing is copying the coarse mesh field of Velocity 'U' and Flux 'phi' from coarse mesh to Finer Mesh. 'UF' is identical to 'U' and 'phiF' is identical to 'phi'. Code:
{ Info<< "Interpolating Flux Field from Coarser to Finer Mesh using Gradient method" << endl; volTensorField gradU(fvc::grad(U)); forAll(LSMesh.cells(), cellI2){ UF[cellI2].component(0)=U[tmpList[cellI2]].component(0)+gradU[tmpList[cellI2]].component(0)*r[cellI2].component(0)+gradU[tmpList[cellI2]].component(1)*r[cellI2].component(1)+gradU[tmpList[cellI2]].component(2)*r[cellI2].component(2); UF[cellI2].component(1)=U[tmpList[cellI2]].component(1)+gradU[tmpList[cellI2]].component(3)*r[cellI2].component(0)+gradU[tmpList[cellI2]].component(4)*r[cellI2].component(1)+gradU[tmpList[cellI2]].component(5)*r[cellI2].component(2); UF[cellI2].component(2)=U[tmpList[cellI2]].component(2)+gradU[tmpList[cellI2]].component(6)*r[cellI2].component(0)+gradU[tmpList[cellI2]].component(7)*r[cellI2].component(1)+gradU[tmpList[cellI2]].component(8)*r[cellI2].component(2); } //phiF = linearInterpolate(UF) & LSMesh.Sf(); //Info << phi << endl; forAll(phiF(), iFace){ //Method2 //Info << LSMesh.Cf()[iFace] << tab << mesh.Cf()[iFace] << endl; //const label& leftcellFine = LSMesh.owner()[iFace]; //const label& rightcellFine = LSMesh.neighbour()[iFace]; //if (WVolList[leftcellFine] < 1){ // phiF[iFace] = 1e-20; //} //else { phiF[iFace] = phi[iFace]; //} } /*forAll (LSMesh.boundaryMesh() , ipatch ) { if( (LSMesh.boundaryMesh()[ipatch].type() == "empty") || (LSMesh.boundaryMesh()[ipatch].type() == "symmetry")){ } else{ const polyPatch& cPatch = LSMesh.boundaryMesh()[ipatch]; forAll(cPatch, facei){ label iFaceGlobal = facei + LSMesh.boundaryMesh()[ipatch].start(); phiF[iFaceGlobal] = phi[iFaceGlobal]; //Info << iFaceGlobal << tab << phi[iFaceGlobal] << tab << phiF[iFaceGlobal] << endl; } } }*/ } Code:
if(LSMesh.cells().size()>=mesh.cells().size()) { //gradPsi == 0*gradPsi; alpha1 == 0*alpha1; Info<< "Interpolation from finer to coarser mesh" << endl; forAll(LSMesh.cells(), cellI){ alpha1[tmpList[cellI]]=alpha1[tmpList[cellI]]+WVolList[cellI]*alpha1F[cellI];} //C[tmpList[cellI]]=C[tmpList[cellI]]+WVolList[cellI]*C_f[cellI];} } Still the result is different in the current solver from both isoAdvector and MULES. The result picture is attached. It seems there is issue with the boundary treatment. Can anyone suggest what possibly be wrong here. Boundary Condition for alpha: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { /*bottom { type cyclic; } top { type cyclic;// } left { type cyclic;// } right { type cyclic;// }*/ symmetry { type symmetry; } atmosphere { type zeroGradient; } front { type empty; } back { type empty; } } // ************************************************************************* // |
|
![]() |
![]() |
![]() |
Tags |
dual grid, interfoam, multiphase flows |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
On grid independent solution for pulsatile flow | David | FLUENT | 5 | March 25, 2022 03:33 |
Poisson solver - orthogonal grid | Fuka | Main CFD Forum | 0 | May 11, 2006 11:19 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 16:49 |
Dual grid structure - enlightment ?? | Jens | Main CFD Forum | 2 | August 1, 2000 18:01 |
matrix solver about block structured grid | young min, Sohn | Main CFD Forum | 1 | July 11, 2000 19:35 |