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

Q:write value at each time step from actuator disc source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2021, 09:27
Default 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
Kbshariff is on a distinguished road
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);
the source term is calculated as
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;
    }
Thank you
Kbshariff is offline   Reply With Quote

Old   December 15, 2021, 11:31
Default
  #2
Member
 
Kabir Shariff
Join Date: Oct 2016
Location: France
Posts: 53
Rep Power: 9
Kbshariff is on a distinguished road
Hello,

I was able to write the CtStar at every timestep. It was trivial!!!

I added a line to the fvOptions
Code:
    writeToFile     true;
and the result is given as a data file in postprocessing
Kbshariff is offline   Reply With Quote

Reply


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] 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


All times are GMT -4. The time now is 02:46.