CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Create nu field in multiphase solver -interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2021, 08:30
Default Create nu field in multiphase solver -interFoam
  #1
New Member
 
renos
Join Date: Dec 2019
Posts: 16
Rep Power: 6
renos is on a distinguished road
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
renos is offline   Reply With Quote

Old   July 30, 2021, 15:18
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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.
LuckyTran is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 06:33
Reading time dependent rotating magnetic field (volVectorField) for MHD solver kavatar OpenFOAM Programming & Development 1 December 11, 2020 01:55
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 05:25
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08


All times are GMT -4. The time now is 13:02.