|
[Sponsors] |
February 10, 2015, 08:50 |
How to Change the boundaryField?
|
#1 |
New Member
Panchatcharam Mariappan
Join Date: Apr 2014
Posts: 17
Rep Power: 12 |
I would like to run a simulation for 600 seconds with Dirichlet boundary condition and 600 to 800 with Neumann Boundary Condition. Is there a way to change the boundary Field and re-run the simulation? Please give exact steps OpenFoam to incorporate this.
|
|
February 10, 2015, 11:10 |
|
#2 |
Member
Join Date: Feb 2014
Posts: 32
Rep Power: 12 |
Hi,
Consider using the groovybc (after installing the swak4foam - https://openfoamwiki.net/index.php/I...am/Downloading). The boundary condition would look like: Code:
floor { type groovyBC; value uniform (0 0 0); // the value for the first time step. variables "X=1;"; // Some variables. valueExpression "X"; // Expression for drichlet gradientExpression "X"; // Expression for drichlet fractionExpression "time() < 600 ? 1 : 0 "; // 1=Drichlet, 0=Gradient evaluateDuringConstruction 1; } See https://openfoamwiki.net/index.php/Contrib/groovyBC for further information. |
|
Tags |
boundaryfield, openafoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mass Transfer without Phase Change in InterPhaseChangeFoam | Parisa_Khiabani | OpenFOAM Running, Solving & CFD | 5 | May 26, 2015 10:40 |
No density change - rhoSimplecFoam | krapic | OpenFOAM | 1 | November 29, 2014 19:39 |
Help with writing a macro/UDF_file/script to change BC at regular time step intervals | Codophobia | Fluent Multiphase | 0 | April 24, 2014 11:07 |
Old OpenFOAM Users, Read This if you Want to Change Username | pete | Site Help, Feedback & Discussions | 0 | March 16, 2009 05:29 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |