|
[Sponsors] | |||||
pressure inlet conditions for unknown pressure |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
mike
Join Date: Jun 2015
Posts: 12
Rep Power: 12 ![]() |
hi,
me = noob me = that guy who has spent days searching me = that guy who prefers comsol over openFoam preliminaries: i'm trying to solve an incompressible flow problem with a simple Newtonian fluid. I am using a fairly simple geometry, though the fluid dynamics are anything but simple. I know the Re, so i am setting the inlet as a uniform fixed value and trying to get output from potentialFoam...for use in my pimpleFoam simulation. I do not know the pressure, but i can at least set the outlet as a uniform fixed value = 0, or zerogradient. I have absolutely no idea what value to set for pressure inlet. None! ideas? p: Code:
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet-1
{
type zeroGradient;
}
inlet-2
{
type zeroGradient;
}
outlet-1
{
type zeroGradient;
}
outlet-2
{
type zeroGradient;
}
walls
{
type fixedValue;
value uniform 0;
}
}
Code:
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
outlet-1
{
type zeroGradient;
}
outlet-2
{
type zeroGradient;
}
inlet-1
{
type uniformFixedValue;
uniformValue constant (1 0 0);
}
inlet-2
{
type uniformFixedValue;
uniformValue constant (1 0 0);
}
walls
{
type fixedValue;
value uniform (0 0 0);
}
}
|
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 14 ![]() |
What happens you use these boundary conditions. I mean to say as per the p file, you are using zero gradient for the pressure do you get the result with this. It should be working.
|
|
|
|
|
|
|
|
|
#3 |
|
New Member
mike
Join Date: Jun 2015
Posts: 12
Rep Power: 12 ![]() |
i've since set the pressure outlet to fixed value = 0.
i think the solvers and schemes are equally as important, and i've recently found ones that work well. |
|
|
|
|
|
|
|
|
#4 |
|
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 12 ![]() |
Hi mike,
perhaps pressureInletOutletVelocity ( http://cfd.direct/openfoam/user-guide/boundaries/ ) would fit to your problem but I don't know what you are planning with the inlet and outlet. Perhaps you should look which tutorial ( http://www.rapidof.com/wp-content/up...rialsGuide.pdf ) could fit to your problem best and adapt it for your needs. regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. Last edited by alexB; July 15, 2015 at 09:33. |
|
|
|
|
|
|
|
|
#5 |
|
New Member
mike
Join Date: Jun 2015
Posts: 12
Rep Power: 12 ![]() |
hi Alex,
so, I've just set the pressure inlets as zeroGradient boundaries and the outlets as fixed value = 0. i was using the velocity inlets as surfaceNormalFixedValue and the velocity outlets as zeroGradients. i have since been working towards explicitly solving for the square duct velocity profile and applying that as the inlet condition. otherwise, i need to run potentialFoam or my actual pisoFoam run with long inlet channels before I get a fully developed profile. |
|
|
|
|
|
|
|
|
#6 |
|
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 12 ![]() |
Hi mike,
I am not that much in potentialFOAM, pisoFOAM and the corresponding boundary conditions. I hope someone else could help you better. regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pressure inlet boundary conditions for open channel flows | jack2000 | OpenFOAM Running, Solving & CFD | 5 | December 6, 2018 12:00 |
| 2D Hypersonic Inlet in FLUENT - Convergence Issues | Fraisdegout | FLUENT | 6 | December 15, 2016 03:07 |
| CFX Simple valve model, inlet and outlet conditions | 749604 | CFX | 24 | August 11, 2014 19:51 |
| UDF to set velocity and pressure in inlet | GerardX89 | Fluent UDF and Scheme Programming | 0 | July 16, 2012 11:15 |
| pressure with velocity inlet boundary conditions | Ashraf Sharara | FLUENT | 1 | August 21, 2008 08:29 |