CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   InterfaceHeight function object gives unusually large values (https://www.cfd-online.com/Forums/openfoam-post-processing/231617-interfaceheight-function-object-gives-unusually-large-values.html)

Malyadeep November 12, 2020 02:33

InterfaceHeight function object gives unusually large values
 
Hi!


I am trying to obtain the interface height for each time step for an emptying bottle in OpenFOAM using the function object interfaceHeight in the controlDict. The problem is the interface height that is being printed is unusually large (of the order 1e+300). I am posting the function definition below for reference.



It seems I am missing out something. It would be great if anyone can help.


Code:

interfaceHeight1
    {   
        #includeEtc "caseDicts/postProcessing/probes/interfaceHeight.cfg"
   
        alpha      alpha.water;
        locations
        (
            (20 0 300)   
            (0 20 300)   
                  (-20 0 300)   
                (0 -20 300)
        );
        direction      (0 0 -1);   
    }

Thanks in advance :)

Malyadeep November 15, 2020 08:52

I got the problem sorted out. I needed to give the locations in millimeters and not meters.


All times are GMT -4. The time now is 06:42.