|
[Sponsors] |
fvOption to take csv/txt file as heat source file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2024, 15:37 |
fvOption to take csv/txt file as heat source file
|
#1 |
New Member
Henry
Join Date: Feb 2024
Posts: 5
Rep Power: 2 |
Hello all,
I am trying to configure fvOption to take a csv/text file for the heat source for each time step for my selected cellSet. The csv/txt file would have the 1st and 2nd column as the timestep and power (W) respectively. I was wondering if there is a way to configure fvOption in OpenFoam_v6 for this? I would really appreciate all your help. Thanks! Below is a sample of my fvOption file Code:
heatSource { type scalarSemiImplicitSource; active true; scalarSemiImplicitSourceCoeffs { selectionMode cellSet; cellSet heat_point; volumeMode absolute; injectionRateSuSp { //heat energy in Watts for each timestep h (120 0) (100 0) (150 0) (200 0) (170 0); //Watt } } } |
|
June 24, 2024, 04:50 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello Henry,
As far as I know it's not possible with OpenFOAM-6. It should be possible on OpenFOAM-8 and newer versions. For the OpenCFD branch, on OpenFOAM-v2006 and newer versions. Regards, Yann |
|
June 25, 2024, 09:42 |
|
#3 |
New Member
Henry
Join Date: Feb 2024
Posts: 5
Rep Power: 2 |
Hi Yann,
Many thanks for your response. I will try out OpenFoam-8 and see if it works. Cheers, Henry |
|
June 26, 2024, 03:27 |
|
#4 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
I regularily use Excel to reformat such data into the form to directly put into fvOptions. Then there is no need for an additional file. Lets say you have your time in column A and value in column B, insert this in C1, drag down through all your values. Select all cells in C, Ctr + C and insert into fvOptions. Done.
Code:
="("&A1&" "&B1&")" |
|
Tags |
fvoptions, fvoptions heat source |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] LaminarSMOKE compilation error | mdhfiz | OpenFOAM Community Contributions | 8 | July 2, 2024 11:32 |
[Other] Tabulated thermophysicalProperties library | chriss85 | OpenFOAM Community Contributions | 62 | October 2, 2022 04:50 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |