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

Stream function function object and overset

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2022, 10:53
Default Stream function function object and overset
  #1
New Member
 
Join Date: Dec 2019
Posts: 13
Rep Power: 6
Vivio is on a distinguished road
Hi everyone,

I am doing a simulation of the cavity case and want to find the location of the centre of the vortex. One way to do this is using the streamFunction function object and finding where the stream function is a minimum. I am using swak so my function looks like this:

HTML Code:
streamFunction {
            type expressionField;
            autowrite true;
            expression "streamFunction(phi)";
            fieldName streamF;
        }

        minStreamFunctionPos {
            type swakExpression;
            verbose true;
            outputControlMode timeStep;
            outputInterval 1;
            expression "streamF";
            valueType internalField;
            accumulations (min);
        expression "minPosition(streamFunction(phi))";
        }
This works for a single grid. However if I try to do this for an overset case, or another case with multiple grids, I get the following error message.

HTML Code:
FOAM FATAL ERROR: 
Cannot find initialisation face or a cell.

    From function streamFunctionPluginFunction::doEvaluation()
    in file streamFunctionPluginFunction.C at line 253.
I also get the same error if I try and use the streamFunction function object included in ESI-OpenFOAM. It looks from the source code like it's trying to find a face on which the flux is zero and can't find one.

Any idea what might cause this, and if there is a workaround?

Best regards,
Vivio
Vivio is offline   Reply With Quote

Old   February 28, 2024, 06:07
Default
  #2
Member
 
Wowbagger's Avatar
 
Michael S.
Join Date: May 2020
Location: Hamburg, Germany
Posts: 52
Rep Power: 6
Wowbagger is on a distinguished road
Send a message via Skype™ to Wowbagger
...maybe too late for the original query but maybe it helps anyway in the future.


I just had this problem in a potentialFoam case.
After some trial and error I found out that the velocity is related in my case.

Switching the initial velocity to higher values is one option as it does only scale the result.

The other solution is to set the wiritePrecision to a higher value. I did from 6 to 12.
Worked in my case.



Best regards
Michael
Wowbagger 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
Overset mesh not acting as an overset mesh JoostLinthorst OpenFOAM Running, Solving & CFD 0 March 12, 2021 09:53
objects oscillate at high speed causing collapse in Dynamic mesh and overset mesh ca insane OpenFOAM Running, Solving & CFD 0 May 17, 2020 22:35
[ANSYS Meshing] 3D rotating wind turbine using overset mesh Paku ANSYS Meshing & Geometry 0 September 10, 2019 23:18
[ANSYS Meshing] Help with Ansys Meshing for fluent overset grid ramkr ANSYS Meshing & Geometry 0 September 7, 2019 02:03
Help in setting up an overset mesh RKE STAR-CCM+ 1 February 21, 2014 21:35


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