CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Problem with fvOptions dataEntry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2014, 07:03
Default Problem with fvOptions dataEntry
  #1
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Hi, I'm trying to use table dataEntry in fvOptions file with MRFSource but it's not working. I'm trying to create a ramp function to increase omega with the following settings:

Code:
    MRFSourceCoeffs
    {
   nonRotatingPatches (rotor_inlet pipe_outlet rotor_outlet volute_inlet shroud_front shroud_back);
        origin      (0 0 0);
        axis        (0 1 0);
//        omega       -314.16;
        omega       table
        (
           (0 0)
           (200 -314.16)
           (12000 -314.16)
        );
    }
So omega should go from 0 -> -314.16 between iterations (I'm using simpleFoam) 0 -> 200 and then stay at the same value for the rest of the calculation.

This however is not working and I get an unphysical solution (viscous moment is in the direction of rotation). If I use the constant value from the beginning it's working, and if I go and manually change the dataentry from table to the constant value after iteration 200 the solution jumps and viscous moment changes to the correct value. So the table entry is clearly not producing a value of -314.16 for omega after iteration 200.

I suspect this is a bug, but I can't find a solution for it.
zordiack is offline   Reply With Quote

Old   March 27, 2014, 07:08
Default
  #2
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Oh and related to this, I tried using timeActivatedFileUpdate function object as a quick fix to this to produce a step function for omega by changing the fvOptions file.

I can see the from the shell that the fvOptions file is updated correctly but the calculation is not picking up the change. So why is readifmodified not working if I use timeActivatedFileUpdate to change the file?
zordiack is offline   Reply With Quote

Old   January 10, 2017, 17:09
Default
  #3
New Member
 
Alex Cavanaugh
Join Date: Sep 2015
Location: Champaign Illinois
Posts: 5
Rep Power: 10
ajcav2 is on a distinguished road
Hi Pekka,

I know I'm late to the game here, but I'm running into a similar problem. I'd like to be able to update omega as the simulation runs preferably by having the fvOptions file read from another file that calculates what omega should be based off a torque value. I was wondering if you ever came across a solution to your problem?

Thanks.
ajcav2 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
[Other] engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 08:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 18:31.