July 16, 2020, 17:59
|
Changing volScalar field using different dictionaries at different time
|
#1
|
New Member
Sagar Pokharel
Join Date: Feb 2018
Posts: 1
Rep Power: 0
|
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.
|
|
|