CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

internalField vs setFieldsDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2018, 13:01
Default internalField vs setFieldsDict
  #1
New Member
 
Join Date: Mar 2014
Posts: 7
Rep Power: 12
jxs832 is on a distinguished road
Hi,

I am a bit confused on the use of internalField versus setFieldsDict. If I specify the internalField (whether uniform or a vector list), do I still need a setFieldsdDict?

In my particular case, I am running mesh refinement for a transient case, so the initial internalField (for the subsequent mesh refinements) is defined using mapFields and the previous coarser solution. Do I need to define a setFieldsDict as well for this finer run?

Thanks

Last edited by jxs832; July 3, 2018 at 13:03. Reason: typos
jxs832 is offline   Reply With Quote

Old   July 4, 2018, 03:27
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
internalField contains the values of the field for each cell. Alternatively, you can specify uniform values.

If you want to start your simulation with non-trivial initial conditions, then you can use:
  • setFields to specify non-uniform values
  • mapFields to use computed values from another case

Using setFields or mapFields is optional, so you only need the [map|set]FieldsDict file when you use corresponding pre-processing tool.


If you directly write your non-uniform values into the internalField list, then you do not need to use any pre-processing tool. However, this list has as many entries as the mesh has cells.
GerhardHolzinger is offline   Reply With Quote

Reply

Tags
initial conditions., internalfields, setfieldsdict


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
internalField condition mchehab2 OpenFOAM Running, Solving & CFD 14 November 10, 2022 13:28
internalField nonuniform List<vector> and internalField nonuniform List <scalar> Ferdinand OpenFOAM Pre-Processing 1 January 3, 2020 12:20
sintax rules to compile setFieldsDict leske OpenFOAM Pre-Processing 2 January 21, 2016 15:58
How can you create a dynamic/calculated internalField? Dvergr OpenFOAM Pre-Processing 0 October 10, 2014 04:03
the internalField entry of U file is not valid in pisoFoam shuoxue OpenFOAM Running, Solving & CFD 5 November 25, 2013 04:05


All times are GMT -4. The time now is 23:53.