|
[Sponsors] |
August 6, 2008, 00:42 |
My case is Flow through a Vent
|
#1 |
New Member
Aditya Chunekar
Join Date: Mar 2009
Posts: 18
Rep Power: 17 |
My case is Flow through a Venturi and I am using lesCavitatingFoam. BC - Velocity inlet and uniform pressure outlet.
I would like to run the case for a higher value of outlet pressure to get initial set of field values. I then want to reduce the outflow pressure and continue running it further. I am running the job in parallel. The problem is the modification of boundary conditions in the time files formed. Please let me know |
|
August 6, 2008, 05:40 |
- Stop the simulation and edit
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
- Stop the simulation and edit the last time dump (in all the processor directories). Set startTime to latestTime and restart
- Or use one of timeVaryingUniformFixedValue or timeVaryingMappedFixedValue to automatically vary a fixedValue b.c. (search this forum - see simpleFoam/pitzDailyExptInlet tutorial) |
|
August 6, 2008, 10:20 |
Thanks Mattijs.
The problem
|
#3 |
New Member
Aditya Chunekar
Join Date: Mar 2009
Posts: 18
Rep Power: 17 |
Thanks Mattijs.
The problem in doing that is this. The BC for pressure in a "non-decomposed" file looks like this. outflow { type fixedValue; value uniform 2e5; } When I decompose the file into n number of processors, on each processor the file looks like outflow { type fixedValue; value nonuniform 0(); } Followed by a list of faces which actually have the same value 2e5. Same thing applies in the boundary section of dumped time files. So now if I have to modify these files, I have to change each of them. Is there any other way to do that ? |
|
August 6, 2008, 10:36 |
Did you try with 'reconstructP
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Did you try with 'reconstructPar', edit the boundary files, 'decomposePar -fields' and then restart?
Or else, if you use the time-varying boundary condition like Mattijs mentioned, you can do a restart without needing to edit the field values themselves. The new value will get taken from the file. |
|
August 6, 2008, 12:21 |
Thanks Mark... reconstructPar
|
#5 |
New Member
Aditya Chunekar
Join Date: Mar 2009
Posts: 18
Rep Power: 17 |
Thanks Mark... reconstructPar works ..
|
|
April 14, 2020, 13:46 |
|
#6 |
Member
Gui Miotto
Join Date: Feb 2020
Posts: 30
Rep Power: 6 |
I posted a possible way to do this here:
Restarting simulations in openfoam with updated boundary conditions |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Burgerbs equation non constant Boundary Conditions Initial Conditions | arkangel | OpenFOAM Running, Solving & CFD | 1 | October 2, 2008 15:48 |
change boundary conditions | adrien | FLUENT | 3 | May 2, 2007 08:52 |
Integral boundary conditions turbulent intensitylength boundary conditions | olesen | OpenFOAM Running, Solving & CFD | 0 | July 27, 2006 08:18 |
change of boundary conditions | luca | FLUENT | 2 | November 22, 2004 11:31 |
rerun with same flow field, different fluid props | Tim | Phoenics | 0 | March 3, 2004 15:51 |