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

fvModels-accelerationSource - No velocity change

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By JNSN

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2023, 03:15
Unhappy fvModels-accelerationSource - No velocity change
  #1
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi Foamers,

I am trying to simulate an effect of fan, and I am using ''accelerationSource'' fvModel. I am using OpenFoam10

The fvModel works fine if I include 'halfCosineRamp' but I cannot see any changes to velocity field when I change it to ''constant''.

I am assuming the fan would exert a constant acceleration to the fluid. Would you take a look into the file ?

PHP Code:
accelerationSource1
{
    
type            accelerationSource;

    
selectionMode   cellZone;
    
cellZone        rotor;

    
U               U;

    
velocity        scale;            //constant; //uniform;
    
value           (0 0 10);

 
    
scale
    
{
        
type         constant;     //one;  //halfCosineRamp;  //constant; 
                                      //halfCosineRamp; uniform constant
        
value        1;
        
        
//start           0;
        //duration        100;
    
}

Also, is this the 'right' fvModel to simulated the 'effect of the fan' ?

Thank you
Dasith
dasith0001 is offline   Reply With Quote

Old   May 4, 2023, 10:18
Default
  #2
Senior Member
 
JNSN's Avatar
 
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 144
Rep Power: 20
JNSN is on a distinguished road
Hi Dasith,


the accelerationSource does not have any effect when using constant as scaling function. Having a look at the code you can see, that the acceleration is calculated by the difference of velocity between the time steps:
Code:
const vector dU =
        velocity_->value(mesh().time().timeToUserTime(t))
      - velocity_->value(mesh().time().timeToUserTime(t - dt));
 const vector a = dU/mesh().time().deltaTValue();
which gives zero acceleration for a constant scale.

I suggest you have a look at the actuationDiskSource in order to model the effect of a fan.

Best,
Jan
JNSN is offline   Reply With Quote

Old   May 4, 2023, 20:37
Smile
  #3
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi Jan,

Thank you very much for the response.

ok, it makes sense now.

Hmm, I've been looking into actuationDiskSource as well, but is it not something to be use for a turbine, where the rotor is driven by wind? fan, is other way around.

PHP Code:
rotor
{
    
type            actuationDiskSource;
    
active          on;
    
selectionMode   cellZone;
    
cellZone        rotor;

    
actuationDiskSourceCoeffs
    
{

    
selectionMode   cellZone;
    
cellZone        rotor;

        
fields          (U);        // names of fields to apply source
        
diskDir         (0 0 1);   // disk direction
        
Cp              0.9;        // power coefficient
        
Ct              0.9;        // thrust coefficient
        
diskArea        0.00001;        // disk area
        
upstreamPoint   (0.65 0 1.82);    // upstream point
    
}

There is thread on this, but that either do not explain much,
Basic use of actuationDiskSource

And this'' Changing rotorDiskSource from source to sink '' also suggest actuationDisk might behave as a turbine.

'rotorDisk' might be my only option?

It is very hard to find any explanations/clarity of on OpenFOAM fvModels/fvOptions in general, whilst those remains very important. I would really appreciate if anyone could shred more light

Thank you
Dasith
dasith0001 is offline   Reply With Quote

Old   May 9, 2023, 05:51
Default
  #4
Senior Member
 
JNSN's Avatar
 
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 144
Rep Power: 20
JNSN is on a distinguished road
Hi, I have never used the OpenFOAM Implementation. But for my understanding the actuationDisk acts Like a driven Propeller, e.g. behind a ship. That means the flow is accelerated die to the implied thrust of the Rotor.
Yann and dasith0001 like this.
JNSN is offline   Reply With Quote

Reply

Tags
accelerationsource, fvmodels


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
serial udf to parallel udf radioss Fluent UDF and Scheme Programming 10 January 19, 2019 09:56
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 05:27
Change in velocity at inlet mutewinter Main CFD Forum 0 June 6, 2014 07:01
mean velocity change from inlet to outlet ro FLUENT 2 April 19, 2008 14:37


All times are GMT -4. The time now is 16:15.