|
[Sponsors] |
April 24, 2018, 15:17 |
Re: mu in interFoam ...SOLVED
|
#1 |
Senior Member
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9 |
I have worked on this for a few days. I need to output mu during an interFoam run so I can see mu field change as water wave shape changes. I wrote the following code and put it in createField.H. I expect that mixture.mu() calculate mu field at each output time. But I found (viewing using paraFoam) that mu field at each output time doesn't change and is the initial mu field where I set it using setFields. Any help is appreciated!
Code:
volScalarField mu ( IOobject ( "mu", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), mixture.mu()*1.0 ); Last edited by Marpole; April 26, 2018 at 12:31. Reason: problem solved. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding diffusion term to interFoam transport equation | Gearb0x | OpenFOAM Programming & Development | 3 | February 14, 2023 04:16 |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 15:26 |
interFoam (HELYX-OS) pressure boundary conditions | SFr | OpenFOAM Running, Solving & CFD | 8 | June 23, 2016 16:36 |
k-e & GAMG interFoam Schemitisation Stability Issue | JFM | OpenFOAM Running, Solving & CFD | 3 | December 1, 2015 05:58 |
Problem of InterFoam with LES SpalartAllmarasIDDES | keepfit | OpenFOAM | 3 | August 29, 2013 11:21 |