CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Changing volScalar field using different dictionaries at different time

Register Blogs Community New Posts Updated Threads Search

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

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.
Code:
profile1 List<scalar>
(
1
2
);
profile2 List<scalar>
(
2
3
);
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

Reply

Tags
constant fluid properties, runtime selection, volscalarfield


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


All times are GMT -4. The time now is 06:33.