|
[Sponsors] |
May 12, 2016, 04:36 |
New time dependent boundary condition
|
#1 |
New Member
|
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |