CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

New time dependent boundary condition

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

LinkBack Thread Tools Display Modes
Old   May 12, 2016, 04:36
Default New time dependent boundary condition
New Member
Jigar Parekh
Join Date: Jul 2015
Posts: 8
Rep Power: 4
jp279 is on a distinguished road
Send a message via Skype™ to jp279
Sponsored Links
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 :

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
Sponsored Links


Thread Tools
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 On
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 6 December 11, 2015 05:45
sliding mesh problem in CFX Saima CFX 45 September 22, 2015 10:53
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56

Sponsored Links

All times are GMT -4. The time now is 23:29.