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

Steps to add an custom field are ...?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2020, 08:11
Default Steps to add an custom field are ...?
  #1
Member
 
Join Date: Jun 2011
Location: Germany
Posts: 59
Rep Power: 16
Siassei is on a distinguished road
Hello,

I need for a wall boundary the kappa volScalarField, but the solver does not need this field --> does not load 0/kappa definition. I will declare a constant field over the time in the first step.
I will find an solution without compiling the original solver files.

I create a file "0/kappa" with all definitions.
But how I ensure the field data is created and readed each time step?

Or is there a way with scalarCodedSource (e.g. in constant/fvOptions)?

Thanks
Thomas
Siassei is offline   Reply With Quote

Old   September 9, 2020, 10:18
Default
  #2
Member
 
Join Date: Jun 2011
Location: Germany
Posts: 59
Rep Power: 16
Siassei is on a distinguished road
Solved it.

The utillity function readFields solves the problem
Siassei is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 07:56
Store data in a different field from a custom BC cstuart OpenFOAM Programming & Development 0 March 21, 2017 10:14
cannot find grid field function in custom field function mehdiataei FLUENT 0 March 19, 2017 04:53
Custom field post processing verboomj OpenFOAM Post-Processing 0 February 10, 2017 05:36
Custom Field Functions: Data from different locations pisykl FLUENT 3 May 25, 2016 06:28


All times are GMT -4. The time now is 07:11.