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

Change boundary conditions on fly by string definition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2015, 11:03
Default Change boundary conditions on fly by string definition
  #1
New Member
 
Algis Dziugys
Join Date: Apr 2015
Posts: 10
Rep Power: 11
Algis is on a distinguished road
Initial file of the pressure contains inlet boundary condition defined in boundaryField section, as for example "Inlet{type fixedValue; value uniform 0;}". Code reads pressure field from this file and further uses for simulation.

But, during the simulation, pressure inlet must be change from initially defined to another type defined by string, as for example "Inlet{type zeroGradient;}" (or other type of boundary condition defined by string and unknown in advance).

Is it possible to program such trick? Something like that, as for example:

p.redefineBoundaryField("Inlet", "Inlet{type zeroGradient;}");

Thank you very much in advance,

Last edited by Algis; December 16, 2015 at 06:33.
Algis 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Problems when change the boundary conditions in rhoSimplicFoam tutorial example SylvainWang OpenFOAM 1 December 17, 2014 15:43
ribbed channel / simpleFoam / boundary conditions beeo OpenFOAM Pre-Processing 20 July 17, 2013 08:39


All times are GMT -4. The time now is 08:20.