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

multiple externalCoupled boundaries for multiple variables

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2019, 05:14
Default multiple externalCoupled boundaries for multiple variables
  #1
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11
Gerry Kan is on a distinguished road
Howdy Folks:

I am wondering if it is possible to apply the externalCoupled boundary condition on different boundaries for different variables.

As a hypothetical example, I have a simple round pipe (three boundaries), for which I have velocity, pressure and temperature fields (as functions of position and time) for the boundaries from an external code. Effectively, I would like to have the following boundary assignments:

inlet: externalCoupled velocity (zeroGradient pressure and temperature)
outlet: externalCoupled pressure (zeroGradient velocity and temperature)
pipe wall: externalCoupled temperature (noSlip velocity and zeroGradient pressure)

So I have two questions ...

1) do I need to keep a separate comms directory (i.e. patchPoints / patchFaces) for each of the variable, or can I use a common comms directory where all patchPoints / patchFaces for all boundaries are included? (I believe it is a yes, but I would like to have a second opinion / confirmation).

2) Is it possible to prescribe velocity and pressure as externalCoupled at both the inlet and outlet? The solver will eventually be compressible so it should be possible, but my experience / gut feeling tells me otherwise.

Thanks in advance, Gerry.
Gerry Kan is offline   Reply With Quote

Old   August 10, 2020, 05:42
Default
  #2
New Member
 
Long Jiang
Join Date: Mar 2019
Posts: 5
Rep Power: 7
jianglong is on a distinguished road
Hi Gerry, I am facing the same problem as you. I need to couple two boundary patches for different variables. Have you solved this problem?
jianglong is offline   Reply With Quote

Old   August 13, 2020, 13:48
Default
  #3
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11
Gerry Kan is on a distinguished road
Dear Jiang:

Kind of. I was busy with other things at the moment so I haven't got time to work on it. But again, I am building a new boundary condition based on that, which complicates matter a lot (and it forced me to go through the source code, and admittedly it was a very steep learning curve).

If you are just looking to couple OpenFOAM with another solver via file I/O as-is, the tutorial that came with OpenFOAM should be able to show you how to set it up. Of course you will need to write the file I/O interface.

Hope that helps, Gerry.
Gerry Kan is offline   Reply With Quote

Reply

Tags
boundary conditions, external bc, externalcoupled, openfoam


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
Implicit vs. explicit treatment of variables at zero gradient outflow boundaries eltenedor Main CFD Forum 0 February 21, 2015 16:37
[General] Programmable Filter: when multiple inputs, how to verify which input is which? macfly ParaView 0 July 12, 2014 12:14
Using Variables from multiple Physics Continua in Field Function cwl STAR-CCM+ 3 November 4, 2013 17:23
Boundaries and conservative variables pankos Main CFD Forum 0 April 2, 2011 04:50
PHI file structure Eugene Phoenics 9 November 2, 2001 23:00


All times are GMT -4. The time now is 17:14.