|
[Sponsors] |
February 14, 2019, 13:28 |
1D-3D Boundary Condition Coupling
|
#1 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 |
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 |
|
February 14, 2019, 22:30 |
|
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 15 |
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 |
|
February 18, 2019, 09:14 |
|
#3 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 |
Thanks. I will look into it and get back to you.
Regards, OKorie |
|
|
|
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 |