CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Changing volScalar field using different dictionaries at different time

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2020, 16:59
Default Changing volScalar field using different dictionaries at different time
New Member
Sagar Pokharel
Join Date: Feb 2018
Posts: 1
Rep Power: 0
ptroyen is on a distinguished road

I have somehow interpolated, say 8 datasets (calculated outside openfoam) for the same field at different times on openfoam mesh. So I have the information regarding the values of the scalar at the cell centers.

I want to make a dict file with all 8 interpolation datasets. And depending on the runtime ( take profile1 for first 10s, and then profile2 for next 10s .. ), I want to pick which dataset to use to create the volScalarfield. But I only use this filed in equation and not solve for this filed inside openfoam.

Since I run the interpolation at the start, the dict file and the volscalarfield will both be in the constant directory.

The dictionary file would look like this.
profile1 List<scalar>
profile2 List<scalar>
otherprofiles ....
My problem is how can I create the volScalar filed of a single variable with this? And how do I go about selecting the specific profile at the required time ?

Thanks in advance.
ptroyen is offline   Reply With Quote


constant fluid properties, runtime selection, volscalarfield

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
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 18:19
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 07:18
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33

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