|
[Sponsors] |
Named expression for volumetric heat source term that changes with time |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 12, 2020, 14:11 |
Named expression for volumetric heat source term that changes with time
|
#1 |
New Member
Join Date: Jul 2019
Posts: 27
Rep Power: 7 |
Hello,
I am trying to write a named expression in Fluent that changes the cell zone volumetric heat source term (W/m^3) over time. Through experiments I have obtained a polynomial equation: y = -0.2546x^2 + 674.23x + 81291 where y is the heat source (W/m^3) and x is time (secs). I'm having issues turning this into a functional named expression on Fluent. 1: I tried typing -0.2546*t^2 + 674.23*t + 81291 When I try to incorporate this as a named expression, I obtain an error "Units mismatch" 2: -0.2546 [W/m^3] *t^2 + 674.23 [W/m^3] *t + 81291 [W/m^3] Gives me a units mismatch warning 2: I tried -0.2546 [W*s^2/m^3] *t^2 + 674.23 [W*s/m^3] *t + 81291 [W/m^3] But this also gives me an error that there is a unit mismatch The logic of the source term is split into 4 sections: Time of 0 to 100 seconds, source term should be 150,000 W/m3. Time of 101 to 250 seconds the source term should be increased to 230,000 W/m3, Time of 251 to 500 seconds the source term increases again to 350,000 W/m3, Time of 501 to 750 seconds the source term 450,000 W/m3 Time of 751 to 1250 seconds the source term should be 525,00 W/m3 I played around and it may work out to this statement here: IF(t<=100[s], 150000 [W/m^3], IF(101[s]<=t<=250[s], 230000 [W/m^3], IF(251[s]<=t<=500[s], 350000 [W/m^3], IF(501[s]<=t<=750[s], 450000 [W/m^3], IF(t>=751[s], 525000 [W/m^3], 0[W/m^3]))))) Would this be appropriate? |
|
August 12, 2020, 22:57 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
was
Code:
2: I tried -0.2546 [W*s^2/m^3] *t^2 + 674.23 [W*s/m^3] *t + 81291 [W/m^3] Code:
-0.2546 [W/m^3/s^2] *t^2 + 674.23 [W/m^3/s] *t + 81291 [W/m^3]
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 42 | May 8, 2024 00:17 |
y+ and u+ values with low-Re RANS turbulence models: utility + testcase | florian_krause | OpenFOAM | 114 | August 23, 2023 06:37 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |