|
[Sponsors] |
Interfoam - can I apply a constant p BC instead of p_rgh? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 17, 2020, 04:08 |
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 |
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 |
|
July 17, 2020, 08:28 |
|
#2 |
New Member
Wenyuan Fan
Join Date: Mar 2017
Posts: 27
Rep Power: 9 |
Please check out the prghPressure boundary condition for the p_rgh field.
|
|
July 27, 2020, 05:12 |
|
#3 |
Member
Mike Worth
Join Date: Jun 2019
Posts: 45
Rep Power: 7 |
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?!?
|
|
July 29, 2020, 20:27 |
two-phase flow problem
|
#4 |
New Member
Valdirene da Rosa Rocho
Join Date: Jul 2020
Posts: 9
Rep Power: 6 |
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. |
|
July 30, 2020, 02:49 |
|
#5 |
Member
Mike Worth
Join Date: Jun 2019
Posts: 45
Rep Power: 7 |
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; Code:
value uniform (0 0 0); |
|
|
|
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 |