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

New time dependent boundary condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2016, 04:36
Default New time dependent boundary condition
  #1
New Member
 
jp279
Join Date: Jul 2015
Posts: 9
Rep Power: 10
jp279 is on a distinguished road
Send a message via Skype™ to jp279
Hello everyone,

I am trying to develop a new boundary condition which is a modified version of a fixed BC. Here, I also read a scalarField H as follows :

top
{
type newBC;
value uniform 101329;
H uniform 0.0;
}


After reading this scalarField H, I update it (by adding some constant to itself) for each time step in the newBC.C file as follows :

H += someConstantScalarField; ... (1)

And then I use this H to compute the value at this boundary.

The problem is that, since I am using a PIMPLE solver, if I use (1) it updates it for all the iterations of the PIMPLE loop of that particular time step. In other words, I want to perform (1) just once for a time step and use that updated H for all the PIMPLE iterations within this time step. Something like :

// if(time step is changed)
{
H += someConstantScalarField; ... (1)
}

I think it can be done. Since I am new to OpenFOAM I am not able to figure it out. Kindly, let me know if you have any suggestions.
jp279 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
fixedValue boundary condition with a time dependent value meth OpenFOAM Pre-Processing 11 May 25, 2023 02:03
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


All times are GMT -4. The time now is 18:59.