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

1D-3D Boundary Condition Coupling

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2019, 13:28
Default 1D-3D Boundary Condition Coupling
  #1
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Hi,

I have a 1D model that I developed using C++. I would like to couple the 1D model to OpenFOAM by doing this:
- Solve the 1D model to get the values for the variables i.e. velocity, pressure etc.
- Supply the values as a boundary condition for the 3D model in OpenFOAM.
- Solve the 3D model and supply the solved values to the 1D model.
This process is made to happen after every time step.
I wanted to know how I can go about the problem. Do I need to develop a new boundary condition or come up with a C++ script where I use functions to exchange the informations. Any advice would be greatly appreciated.

Regards,
OKorie
charles4allme is offline   Reply With Quote

Old   February 14, 2019, 22:30
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
Have you seen this : https://github.com/OpenFOAM/OpenFOAM...hScalarField.H ? It is for temperature, but I bet you'd be able to get it to work for an arbitrary field.

Caelan
clapointe is offline   Reply With Quote

Old   February 18, 2019, 09:14
Default
  #3
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Thanks. I will look into it and get back to you.

Regards,
OKorie
charles4allme 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Cyclic boundary condition in foam-extend 4.0 rellumeister OpenFOAM Pre-Processing 2 March 3, 2020 09:03
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
several fields modified by single boundary condition schröder OpenFOAM Programming & Development 3 April 21, 2015 06:09
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00


All times are GMT -4. The time now is 22:05.