|
[Sponsors] |
Averaging a field created by a functionObject |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 20, 2017, 13:21 |
Averaging a field created by a functionObject
|
#1 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
Hello all,
I'm working on some LES and as most know I'd like to get the ratio of TKE from the resolved velocity field to the total TKE. Right now there exists a functionObject for generating the TKE for the SGS at any instant in time (I believe) through the turbulenceFields functionObject. However to get the ratio, I would need the average SGS TKE. Since this field is only written to disk every so often and not stored by the solver during iteration, it's not so easy to get an average without massive storage requirements. It appears others have modified the solver to compute it at runtime, seen here: Smagorinsky LES: output and average k value However this post is a bit old and I was just wondering if this is still a viable method. Is there a newer functionObject which will allow the storage of any field in memory at runtime, or must the solver be modified to allow this? |
|
December 21, 2017, 02:22 |
|
#2 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hello
taking a look onto your problem, I suggest you three things:
|
|
October 3, 2018, 12:58 |
|
#3 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
Just to follow up, I figured this out. No modifications to the solver or use of swak4Foam is needed.
You just have to add the functionObject you want to your control dictionary before the fieldAverage. Then fieldAverage will pick it up without issue. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
[General] How to create an additional vector with {Field 4, Field 5, Field 6} | Bombacar | ParaView | 1 | August 15, 2015 19:05 |
Averaging a field in parallel during the simulation | saba_saeb | OpenFOAM Running, Solving & CFD | 4 | July 23, 2013 13:13 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |