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

How to Change the boundaryField?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2015, 07:50
Default How to Change the boundaryField?
  #1
New Member
 
Panchatcharam Mariappan
Join Date: Apr 2014
Posts: 17
Rep Power: 12
mpanch13114 is on a distinguished road
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.
mpanch13114 is offline   Reply With Quote

Old   February 10, 2015, 10:10
Default
  #2
Member
 
Join Date: Feb 2014
Posts: 32
Rep Power: 12
yeharav is on a distinguished road
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;
    }
First 600 seconds use drichlet, then switch to neumann


See https://openfoamwiki.net/index.php/Contrib/groovyBC
for further information.
yeharav is offline   Reply With Quote

Reply

Tags
boundaryfield, openafoam


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
Mass Transfer without Phase Change in InterPhaseChangeFoam Parisa_Khiabani OpenFOAM Running, Solving & CFD 5 May 26, 2015 09:40
No density change - rhoSimplecFoam krapic OpenFOAM 1 November 29, 2014 18:39
Help with writing a macro/UDF_file/script to change BC at regular time step intervals Codophobia Fluent Multiphase 0 April 24, 2014 10:07
Old OpenFOAM Users, Read This if you Want to Change Username pete Site Help, Feedback & Discussions 0 March 16, 2009 04:29
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 11:30.