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

Interfoam - can I apply a constant p BC instead of p_rgh?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2020, 04:08
Default Interfoam - can I apply a constant p BC instead of p_rgh?
  #1
Member
 
Mike Worth
Join Date: Jun 2019
Posts: 45
Rep Power: 7
MikeWorth is on a distinguished road
I've got a model, which has a horizontal boundary where both fluids are present; the physics requires a constant pressure here, regardless of which fluid is touching the boundary. Setting a constant p_rgh boundary condition leads to an abrupt change in pressure at the liquid interface, breaking things.

Can anyone suggest a way to force a constant pressure here, not subtracting the hydrostatic bit?

Thanks,
Mike
MikeWorth is offline   Reply With Quote

Old   July 17, 2020, 08:28
Default
  #2
New Member
 
Wenyuan Fan
Join Date: Mar 2017
Posts: 27
Rep Power: 9
Wenyuan is on a distinguished road
Please check out the prghPressure boundary condition for the p_rgh field.
Wenyuan is offline   Reply With Quote

Old   July 27, 2020, 05:12
Default
  #3
Member
 
Mike Worth
Join Date: Jun 2019
Posts: 45
Rep Power: 7
MikeWorth is on a distinguished road
Thanks for pointing out what should have been obvious - I've got no idea how I missed that on the BC list, then failed to find anything with google?!?
MikeWorth is offline   Reply With Quote

Old   July 29, 2020, 20:27
Default two-phase flow problem
  #4
New Member
 
Valdirene da Rosa Rocho
Join Date: Jul 2020
Posts: 9
Rep Power: 6
valdirene.rocho is on a distinguished road
Good evening

Guys, I'm working with a two-phase flow (laminar) in openFoam 7 but I haven't managed to set the boundary conditions yet.
I'm using the interFoam solver.
My advisor suggested using the boundary condition below:

type pressureDirectedInletOutletVelocity;
phi phi;
rho rho;
inletDirection uniform (1 0 0);
value uniform 0;

However, the following error appears:

FOAM FATAL IO ERROR:
Expected a '(' while reading VectorSpace<Form, Cmpt, Ncmpts>, found on line 41043 the label 0

file: /home/valdirene/Documentos/Estado_transiente/pressureDirectedInletOutletVelocity/0/U.boundaryField.saidaInferior.value at line 41043.

From function Foam::Istream& Foam::Istream::readBegin(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 92.

FOAM exiting

Segmentation fault (core dumped)

Can someone help me? Whether using this boundary condition or how to fix the problem.
valdirene.rocho is offline   Reply With Quote

Old   July 30, 2020, 02:49
Default
  #5
Member
 
Mike Worth
Join Date: Jun 2019
Posts: 45
Rep Power: 7
MikeWorth is on a distinguished road
In the future you should post questions like these in a new thread to ensure that more people see it, rather than on the end of an existing one.

That said, it looks like you need to change:
Code:
value uniform 0;
to:
Code:
value uniform (0 0 0);
It's complaining about not finding a bracket where it expects one; it's expecting one because it needs a vector for the initial velocity. You've given it 0 on it's own, which is a scalar.
MikeWorth is offline   Reply With Quote

Reply


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
Adding diffusion term to interFoam transport equation Gearb0x OpenFOAM Programming & Development 3 February 14, 2023 04:16
fvOptions in interfoam mehdiataei OpenFOAM Programming & Development 8 May 25, 2021 07:42
how to apply constant velocity to particles during the simulation mohammad STAR-CCM+ 1 January 24, 2014 05:18
how to apply constant velocity to particles during the simulation mohammad FLUENT 2 January 24, 2014 04:17
Relief Plots in CFX Michael CFX 15 June 30, 2006 08:01


All times are GMT -4. The time now is 23:53.