|
[Sponsors] |
October 7, 2019, 17:59 |
Reloading boundaries fails for wallFunction
|
#1 |
New Member
David
Join Date: Dec 2017
Posts: 4
Rep Power: 9 |
Hello together,
we recently use OpenFOAM in coupled multiphysical simulations with other solvers and need to recompute certain timesteps in each solver in order to use implicit coupling algorithms. Therefore, we reload in OpenFOAM internal fields (e.g. p, U) and reevaluate the boundaries by using the OpenFOAM function correctBoundaryConditions(). Reevaluating boundaries works fine for most of the boundary condition types, but it fails for some wall function types (e.g. epsilonWallFunction), where OpenFOAM raises the following error message: Code:
--> FOAM FATAL ERROR: request for volScalarField::Internal kEpsilon:G from objectRegistry region0 failed available objects of type volScalarField::Internal are 23 ( thermo:mu thermo:psi nut epsilon_0 K K_0 h p_rgh_0 rho k h_0 p_rgh dpdt gh alphat rho_0 p T k_0 p_0 thermo:rho epsilon thermo:alpha ) If you are interested in a more extensive problem description/history or like to contribute on github: This is currently an open issue in precice/openfoam-adapter#4. Any idea or hint is very welocme! Best regards, David |
|
October 11, 2019, 07:13 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
The Problem in your case is that the field G is only known inside the turbulence model class and non in the global object registry. In order to evaluate the wallfunvions from outside the turbulence model you have to make the required fields visible globally by inserting them into the mesh database
|
|
October 13, 2019, 13:49 |
|
#3 |
New Member
David
Join Date: Dec 2017
Posts: 4
Rep Power: 9 |
Thanks for your reply.
Do you know how to access turbulence models in general? Inserting it in the base class should not be a problem. But accessing it results in my case in an -fpermissive compiler error. |
|
October 13, 2019, 14:35 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
You can get a constant reference to most fields see https://www.openfoam.com/documentati...enceModel.html. I believe also to the G field
|
|
October 13, 2019, 14:37 |
|
#5 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
A and in almost all solvers there is a reference to the turbulence model. You can find an example here https://github.com/OpenFOAM/OpenFOAM...createFields.H
|
|
Tags |
bounadry condition, couple, openfaom, precice, wallfunction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mapped vs Cyclic Boundaries in OpenFOAM | arsenis | OpenFOAM Running, Solving & CFD | 1 | February 8, 2023 22:13 |
2D Rotating Detonation Engine Periodic Boundaries | whitet86 | FLUENT | 2 | June 25, 2015 12:04 |
[Other] CheckMesh fails when cyclic boundaries are defined - OF 2.2.0 | caduqued | OpenFOAM Meshing & Mesh Conversion | 2 | May 21, 2013 19:31 |
Setting Flow/Pressure Boundaries in Floworks | Eran | FloEFD, FloWorks & FloTHERM | 3 | August 11, 2009 05:23 |
periodic boundaries - flow through a net | PK | FLUENT | 0 | July 12, 2007 12:58 |