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

Velocity gradient during runTime

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2019, 05:31
Default Velocity gradient during runTime
  #1
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 9
Friendly is on a distinguished road
Hello foamers,


I want to obtain the velocity gradient during computation. I do it this way in the controlDict:


Code:
functions
{
    libs ("libfieldFunctionObjects.so");


    Ma
    {
        type            MachNo;
        executeControl  writeTime;
        writeControl    writeTime;
    }
    
    gradU
    {
        type            grad;
        field           U;

        executeControl  timeStep;
        writeControl    timeStep;
 
    }
    

 }
My problem is, that I get grad(U) only at the first timeStep for some reason. Obtaining Ma works perfectly fine. It works perfectly fine with mag. I also tried the same with p. The result is the same, mag works, but grad only for the first timestep.


I hope somebody can help!




Regards,
Friendly
Friendly 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
access to velocity gradient for Lagrangian particles jiejie OpenFOAM 31 December 2, 2016 05:56
WSS and normal velocity gradient for the slanted pipe wanna88 FLUENT 2 October 1, 2012 23:34
Velocity gradient on Symmetry Boundary prikeyma FLUENT 2 September 2, 2011 07:16
Velocity gradient Stephen FLUENT 0 April 7, 2003 11:29
Velocity gradient Stephen Main CFD Forum 0 April 7, 2003 11:28


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