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

coded fixed value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2022, 10:06
Post coded fixed value
  #1
New Member
 
mfr
Join Date: Nov 2021
Posts: 13
Rep Power: 4
ucceyrekkokorec is on a distinguished road
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?
ucceyrekkokorec is offline   Reply With Quote

Old   February 25, 2022, 08:41
Default outletMappedUniformInlet as an example
  #2
Member
 
Bas Nieuwboer
Join Date: Mar 2013
Posts: 34
Rep Power: 13
bjnieuwboer is on a distinguished road
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.
bjnieuwboer is offline   Reply With Quote

Old   February 26, 2022, 00:55
Default
  #3
New Member
 
mfr
Join Date: Nov 2021
Posts: 13
Rep Power: 4
ucceyrekkokorec is on a distinguished road
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>;
}
ucceyrekkokorec 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
[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


All times are GMT -4. The time now is 19:34.