CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Saving the meanVelocityForce-based momentumSource data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2020, 13:10
Default Saving the meanVelocityForce-based momentumSource data
  #1
New Member
 
Omid
Join Date: Jun 2019
Posts: 1
Rep Power: 0
jerkato is on a distinguished road
Hi all,


I'm running a 2D steady simulation of the periodic hill case, similar to the steady state OF tutorial case. For the simulation I apply a force in the momentum equation in order to maintain a mean velocity, by using the meanVelocityForces in the fvOptions as follows:

Code:
momentumSource
{
    type            meanVelocityForce;
    active          yes;            //on/off switch

    meanVelocityForceCoeffs
    {
        selectionMode   all;       //cellSet // points //cellZone

        fields      (U);
        Ubar        (0.020188 0 0 );
        relaxation  1.0; 
    }
}

I would like to be able to save the data for this source term at every time step. Can someone please advise if this is possible? If so, how should one go about implementing it.

Cheers,

Last edited by jerkato; December 17, 2020 at 13:13. Reason: Code not appearing with the right format
jerkato is offline   Reply With Quote

Old   July 6, 2021, 09:43
Default
  #2
Member
 
Andrea Di Ronco
Join Date: Nov 2016
Location: Milano, Italy
Posts: 57
Rep Power: 10
Diro7 is on a distinguished road
Hi Omid,

if I got it right, you were looking for a way to compute/save the acceleration source equivalent to the velocity-correction approach on which meanVelocityForce is based?

Did you find a solution? I'd be interested
Thanks,

Andrea
Diro7 is offline   Reply With Quote

Reply

Tags
fvoptions momentum source, openfoam


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
Saving Ansys Data in as a mat. file in Matlab Niko9310 ANSYS 0 August 13, 2014 12:46
SSD (Solid-state drive) for Fluent data reading and saving Anna Tian FLUENT 1 July 16, 2014 14:55
UDF for saving data of a transient simulation at particular locations sreerajvarma Fluent UDF and Scheme Programming 3 July 16, 2014 08:00
[OpenFOAM] saving data in paraview aylalisa ParaView 3 May 31, 2014 12:38
saving data along a line Philip FLUENT 2 February 7, 2006 04:18


All times are GMT -4. The time now is 04:12.