|
[Sponsors] |
Creation of cyclic baffles fails with OpenFOAM 10 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 6, 2022, 06:23 |
Creation of cyclic baffles fails with OpenFOAM 10
|
#1 | |
Member
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14 |
I am trying to migrate my models from OpenFOAM 8 to OpenFOAM 10. I noticed the following commit which required changes to the input syntax for baffle creation.
Previously the baffle was defined using e.g.: Code:
internalFacesOnly true; fields true; baffles { inte_eval_baffle { region fluid_body; type faceZone; zoneName inte_eval; patchPairs { type cyclic; transformType none; } } } Code:
internalFacesOnly true; fields true; baffles { inte_eval_baffle { region fluid_body; type faceZone; zoneName inte_eval; owner { name inte_eval_baffle_side0; type cyclic; neighbourPatch inte_eval_baffle_side1; transform none; } neighbour { name inte_eval_baffle_side1; type cyclic; neighbourPatch inte_eval_baffle_side0; transform none; } } } Quote:
When using "fields false" in createBafflesDict the operation succeeds but later decomposePar fails because obviously the fields are not defined for the baffle sides. It would be great if anybody could shed light onto this. I am trying to figure out the problem since a few days now without success. Apparently it is not a bug because my issue was closed as a user support request. Unfortunately I fail to see what I am doing wrong. An online search for the error message also did not yield anything useful and the only issue I found here in the forum is this which is unresolve. also it is related to extrudeToRegion and not createBaffles. There is a question related to this. I am creating the cyclic baffle because I want to evaluate the pressure at a faceZone. This does not work (or at least I found no way to do so directly) thus I created the cyclic baffle to evaluate the pressure like for a boundary patch. Code:
facePressure_inte_eval_baffle { region fluid_duct; type surfaceFieldValue; writeFields false; log true; regionType patch; fields (p_rgh); operation weightedAverage; name inte_eval_baffle_side0; } |
||
October 7, 2022, 11:21 |
|
#2 |
Member
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14 |
Not verified this completely but it looks like since recent versions of OpenFOAM it is possible to evaluate scalars at a surface even without interpolation.
Code:
pressure_eval { type surfaceFieldValue; writeFields false; log true; regionType faceZone; fields (p_rgh); operation areaAverage; name eval; } Last edited by billie; October 10, 2022 at 14:21. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 25 | August 14, 2022 13:55 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 05:40 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 11:50 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 03:19 |