|
[Sponsors] |
December 27, 2021, 06:01 |
Regarding difference in boundary conditions
|
#1 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello guys,
when I ran the test cases of dam break and sloshing tank problem sloshing tank has 2 different boundary conditions for Pressure(i. e P_rgh ,P). BUT DAM BREAK has only one boundary condition for P. Can anyone tell me why this is done? I know both are made for different solvers but why two boundary conditions for P in sloshing tank? Thanks in advance. |
|
December 27, 2021, 06:24 |
|
#2 |
New Member
CE
Join Date: Jul 2021
Posts: 12
Rep Power: 5 |
i have the same problem
|
|
December 27, 2021, 06:26 |
|
#3 |
New Member
CE
Join Date: Jul 2021
Posts: 12
Rep Power: 5 |
i have the same problem
|
|
December 27, 2021, 13:55 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
p doesn't have boundary conditions, they're all type calculated.
|
|
December 27, 2021, 23:42 |
|
#5 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello luckyTran,
If p are all type calculated then why dam break problem had only p_rgh in 0 folder. And sloshing tank has p,p_rgh in zero folder ? Thanks and regards |
|
December 28, 2021, 01:15 |
|
#6 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
Because potentialFreeSurfaceFoam needs a way to set the reference pressure consistently for both the total pressure and the hydraulic pressure. In interFoam, that job is fulfilled by rho.
|
|
December 28, 2021, 01:48 |
|
#7 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello Lucky,
Can you please explain it in more detail. Thanks in advance |
|
December 28, 2021, 03:04 |
|
#8 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
All the details you can ever hope for are in createFields.H and pEqn.H
Code:
Info<< "Reading field p (kinematic)\n" << endl; volScalarField p ( IOobject ( "p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Reading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); #include "createPhi.H" singlePhaseTransportModel laminarTransport(U, phi); autoPtr<incompressible::momentumTransportModel> turbulence ( incompressible::momentumTransportModel::New(U, phi, laminarTransport) ); #include "readGravitationalAcceleration.H" Info<< "Creating field zeta\n" << endl; volVectorField zeta ( IOobject ( "zeta", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), mesh, dimensionedVector(dimLength, Zero) ); Info<< "Creating field p_gh\n" << endl; volScalarField p_gh ( IOobject ( "p_gh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); // Force p_gh to be consistent with p // Height is made relative to field 'refLevel' p_gh = p - (g & mesh.C()); pressureReference pressureReference(p_gh, pimple.dict()); mesh.setFluxRequired(p_gh.name()); #include "createMRF.H" #include "createFvModels.H" #include "createFvConstraints.H" Code:
p_gh = p - (g & mesh.C()); pressureReference pressureReference(p_gh, pimple.dict()); Code:
p = p_gh + (g & mesh.C()); |
|
December 28, 2021, 03:49 |
|
#9 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello Lucky,
But we have 'P' in in tutorials of compressibleInterfoam in zero folder . Why do we have it? Thanks and Regards |
|
December 28, 2021, 16:23 |
|
#10 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
And? What's your point? p in compressibleInterFoam also does not have any boundary conditions.
|
|
December 28, 2021, 22:05 |
|
#11 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Why do we need to set a special reference to P in compressible interfoam tutorial cases? There is no special reference for p in test cases of interfoam in zero folder.
Thanks and regards. |
|
December 29, 2021, 02:29 |
|
#12 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
Because compressibleInterFoam is compressible and uses a non-incompressible thermophysical model. Equations of states are based off of p and T (and not p_gh/p_rgh).
Please don't ask why there is a T in compressibleInterFoam and not in interFoam. God forbid people develop solvers that do more things. Just stick to interFoam if you're that lost. |
|
December 29, 2021, 03:03 |
|
#13 |
New Member
hari
Join Date: Nov 2019
Posts: 9
Rep Power: 7 |
I am not that blind to ask why T is in compressible interfoam. I know compressible interfoam solver solves for energy equation. Anyway thanks for help lucky tran
|
|
December 29, 2021, 16:36 |
|
#14 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
Let me make this even clearer since I don't think you actually get it yet. Even if there was no energy equation (just like there is no equation for p) you would still need to supply a T field simply because the thermophsysical model you are using asks for one (in compressibleInterFoam anyway). Energy equation means you need to provide boundary conditions for the variable, yes. But there are other reasons for providing a field
|
|
December 29, 2021, 22:31 |
|
#15 |
New Member
hari
Join Date: Nov 2019
Posts: 9
Rep Power: 7 |
Hello lucky,
Now I get it. Thank you for patiently explaining things for me. |
|
Tags |
opeanfoam, openfoam 8 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for Automatic Solution Initialization for previous case data file | gartz89 | Fluent UDF and Scheme Programming | 6 | March 30, 2020 08:38 |
Wrong multiphase flow at rotating interface | Sanyo | CFX | 14 | February 7, 2017 18:19 |
Out File does not show Imbalance in % | Mmaragann | CFX | 5 | January 20, 2017 11:20 |
Problem with SIMPLEC-like finite volume channel flow boundary conditions | ghobold | Main CFD Forum | 3 | June 15, 2015 12:14 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |