CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Problem with fvOptions dataEntry

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 27, 2014, 08:03
Default Problem with fvOptions dataEntry
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 38
Rep Power: 5
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:

   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, 08:08
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 38
Rep Power: 5
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


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
engineFoam new mesh problem ayhan515 OpenFOAM 2 May 1, 2012 04:29
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 02:54.