|
[Sponsors] |
Q:write value at each time step from actuator disc source term |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
December 15, 2021, 09:27 |
Q:write value at each time step from actuator disc source term
|
#1 |
Member
Kabir Shariff
Join Date: Oct 2016
Location: France
Posts: 53
Rep Power: 9 |
Hi,
I am running a simulation of a tidal turbine using an actuator disc. The actuator disc source term in openfoam is calculated using a variableScaling method defined in fvOptions the thrust coefficient is calculated as Code:
const scalar CtStar = Ct*sqr(magUref/magUdisk); Code:
// Compute calibrated thrust/power (LSRMTK:Eq. 5) const scalar T = 0.5*rhoRef*diskArea_*magSqr(Udisk & diskDir_)*CtStar; as shownhere How can I write the value of CtStar for each timestep that is calculated? I tried to use functionObjLib in control dict but CtStar is not defined in the list of Code:
testing { type writeRegisteredObject; functionObjectLibs ( "libIOFunctionObjects.so" ); objectNames ("bananas"); outputControl outputTime; } |
|
December 15, 2021, 11:31 |
|
#2 |
Member
Kabir Shariff
Join Date: Oct 2016
Location: France
Posts: 53
Rep Power: 9 |
Hello,
I was able to write the CtStar at every timestep. It was trivial!!! I added a line to the fvOptions Code:
writeToFile true; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 08:06 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 01:22 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 07:47 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 02:58 |