|
[Sponsors] |
mapFields between two different OpenFOAM solvers |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 10, 2019, 17:12 |
mapFields between two different OpenFOAM solvers
|
#1 |
New Member
pooyan
Join Date: Mar 2013
Location: Boston, US
Posts: 6
Rep Power: 13 |
Hi everyone,
I am trying to run a compressible flow simulation using the rhoCentralFoam solver. However, due to convergence issues, I want to improve my initial conditions in the domain from the solution of another solver on the same geometry and mesh. Is it possible to use mapFields for this purpose between two different solvers? For example using icoFoam solution as the initial condition for rhoCentralFoam (although density is not resolved in the icoFoam). As a more general question, what are the ways to provide a more realistic boundary condition to improve the solution speed and convergence in more expensive simulations. Thanks |
|
June 11, 2019, 09:43 |
|
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
Yes, you can.
And now for more details You can create an incompressible twin-case to compute a velocity field with which to initialize the compressible case. With the incompressible case, you can initialize this case using the potentialFoam solver. Note, that you should not map the pressure field, since the pressure has different dimensional units in the incompressible and compressible case. Also, the phi field has a different dimension in incompressible and compressible cases. Since mapFields maps all matching fields between two cases, you need to restrict the mapping to U, and possibly the turbulent fields. |
|
June 11, 2019, 14:46 |
|
#3 | |
New Member
pooyan
Join Date: Mar 2013
Location: Boston, US
Posts: 6
Rep Power: 13 |
Quote:
Thanks for your response. That's good news! Do you know of any tutorial that explains this in more details. I am wondering how can I specify only the velocity field during mapFields operation? I looked at "mapFields -help" but could not find any options related to that. Regards |
||
June 14, 2019, 07:57 |
|
#4 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
In the case that a tool does let you specify certain fields, simply make sure that the intended fields are the only ones that are present.
Since, you can't tell mapFields to only map the U field, follow such a procedure:
|
|
June 14, 2019, 13:09 |
|
#5 | |
New Member
pooyan
Join Date: Mar 2013
Location: Boston, US
Posts: 6
Rep Power: 13 |
Quote:
Best |
||
Tags |
initial conditions, mapfields |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | October 1, 2016 20:20 |
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 14, 2016 11:19 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |