|
[Sponsors] |
February 23, 2022, 10:06 |
coded fixed value
|
#1 |
New Member
mfr
Join Date: Nov 2021
Posts: 13
Rep Power: 4 |
Hi foamers,
I'm trying to simulate rotor stator interaction on a gas turbine blade. I want to take the outlet values and give to inlet by flipping the surface values. To illustrate, consider a 2D plate the value at the right bottom corner will be the left top corner value entering the inlet. I know how to read velocity or pressure values on a boundary. But how can ı flip it and write to another boundary? |
|
February 25, 2022, 08:41 |
outletMappedUniformInlet as an example
|
#2 |
Member
Bas Nieuwboer
Join Date: Mar 2013
Posts: 34
Rep Power: 13 |
While I don't have the exact answer for you I can point you in a general direction. First you can have a look at all the boundary conditions openfoam has to offer:
https://www.openfoam.com/documentati...ary-conditions . I searched for mapped and came across the 'outletMappedUniformInlet' boundary condition. The 'outletMappedUniformInlet' boundary conditions maps a flux at the outflow to the inflow. This can be used as a base case. The description of the entries can be found in the header file: https://www.openfoam.com/documentati...8H_source.html . Some general notes on how to create a boundary condition can be found in: http://www.tfd.chalmers.se/~hani/kur...yCondition.pdf . It shows the implementation of a parabolic boundary condition. There are also youtube video's of how to implement such a boundary condition if you need inspiration. |
|
February 26, 2022, 00:55 |
|
#3 |
New Member
mfr
Join Date: Nov 2021
Posts: 13
Rep Power: 4 |
Firstly, thank you for your response. I think ı might solve the problem by using timeVaryingMappedFixedValue. But it takes value from files. How can ı use codeStream to code what ı want as points and data.
<patch name> { type timeVaryingMappedFixedValue; } <patch name> { type timeVaryingMappedFixedValue; dataDir "../<source case name>/postProcessing/sample"; points "0/<sample name>/faceCentres"; sample <sample name>; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 10:21 |
Mass imbalance with fixed values (euler-euler) | CeesH | FLUENT | 0 | April 6, 2018 09:12 |
fixed bed reactor | Many | Fluent Multiphase | 2 | February 12, 2018 22:30 |
Fixed CL mode in SU2 V4.2 | ygd | SU2 | 0 | November 15, 2016 10:59 |
codeInclude in coded function in controlDict, and yPlus | LuisAlberto | OpenFOAM Programming & Development | 4 | August 18, 2015 13:48 |