|
[Sponsors] |
Create nu field in multiphase solver -interFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 30, 2021, 09:30 |
Create nu field in multiphase solver -interFoam
|
#1 |
New Member
renos
Join Date: Dec 2019
Posts: 16
Rep Power: 6 |
Hello,
I would like to create a kinematic viscosity field for interFoam solver and save the values of the field in a text. How I can create this type of fields? Any idea? Thanks in advance, Renos |
|
July 30, 2021, 16:18 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
Depends what you are trying to do. If you want to calculate it once and dump it, there are pre/post processing tools that will do that (setFields for example). There's also function objects that you can place usually in your fvSolution dict that can calculate it on demand. If you want to do a lot of things you can hack open the solver and go to createFields.H and create an IOObject, which makes the field available at all times including runtime, and recompile the solver.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
foam-extend-4.1 release | hjasak | OpenFOAM Announcements from Other Sources | 19 | July 16, 2021 06:02 |
Fail to converge when solving with a fabricated solution | zizhou | FLUENT | 0 | March 22, 2021 07:33 |
Reading time dependent rotating magnetic field (volVectorField) for MHD solver | kavatar | OpenFOAM Programming & Development | 1 | December 11, 2020 02:55 |
Long output in terminal. | ssa_cfd | OpenFOAM Running, Solving & CFD | 1 | March 18, 2019 06:25 |
fluent divergence for no reason | sufjanst | FLUENT | 2 | March 23, 2016 17:08 |