|
[Sponsors] |
Change boundary conditions on fly by string definition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 15, 2015, 12:03 |
Change boundary conditions on fly by string definition
|
#1 |
New Member
Algis Dziugys
Join Date: Apr 2015
Posts: 10
Rep Power: 11 |
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 07:33. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
Problems when change the boundary conditions in rhoSimplicFoam tutorial example | SylvainWang | OpenFOAM | 1 | December 17, 2014 16:43 |
ribbed channel / simpleFoam / boundary conditions | beeo | OpenFOAM Pre-Processing | 20 | July 17, 2013 09:39 |