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/)
-   -   Problems with interfaceHeight (https://www.cfd-online.com/Forums/openfoam-post-processing/207081-problems-interfaceheight.html)

ch_jaehnel September 24, 2018 05:24

Problems with interfaceHeight
 
Hello Foamers!

I am facing a problem since I found the postProcessing tool "interfaceHeight". Does anybody of you has experience with that? I get the following error message:


Code:

Create time

Create mesh for time = 0

Time = 0

Reading fields:

Executing functionObjects


--> FOAM FATAL ERROR:

    request for uniformDimensionedVectorField g from objectRegistry region0 failed
    available objects of type uniformDimensionedVectorField are
0()

    From function const Type &Foam::objectRegistry::lookupObject(const Foam::word &) const [with Type = Foam::UniformDimensionedField<Foam::Vector<double>>]
    in file /sw/taurus/applications/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  ? at turbulentFluidThermoModels.C:?
#3  ? at interfaceHeight.C:?
#4  Foam::functionObjects::interfaceHeight::write() at ??:?
#5  Foam::functionObjects::timeControl::write() at ??:?
#6  Foam::functionObjectList::execute() at ??:?
#7  ? at postProcess.C:?
#8  ? at ??:?
#9  __libc_start_main in "/usr/lib64/libc.so.6"
#10  ? at ??:?
Aborted


For my understanding g can only be a uniformDimensionedVectorField?! What else should it be?

interfaceHeight-file:
Code:

#includeEtc "caseDicts/postProcessing/probes/interfaceHeight.cfg"

alpha      alpha.water;
locations
(
    (0 0 0)
);



Here is my g-file:


Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      uniformDimensionedVectorField;
    location    "constant";
    object      g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -2 0 0 0 0];
value          (0 0 -9.81);

// ************************************************************************* //

I am using OpenFoam/5.0 for postProcessing. The simulation is done with interFoam. Maybe one of you had the same experiences?

Thanks in advance.

juanpi March 22, 2019 04:58

Try running the postprocessing with the solver. I do not think your saved solutions have all the information interfaceHeight needs.


Code:

interFoam -postProcess -func interfaceHeight

prakashPra November 1, 2020 19:46

interface height along a slant wall
 
I am working to obtain contact line motion in a container. I am thinking of obtaining interface height along a wall and then for velocity, I will take the difference of the location of 2 subsequent timestep divided by time difference. But I am unable to get the location of interface along the slant wall. It would be helpful if anyone can provide any suggestion regarding it.

I have used this code in controldict

functions
{
#includeFunc residuals
#includeFunc interfaceHeight
interfaceHeight1
{
type interfaceHeight;
libs ("libfieldFunctionObjects.so");
alpha alpha.water;
locations ((0 0 0));
direction (0.0064 0.024 0);
}
}

direction in this I assumed it to be ray from ( 0 0 0) to (0.0064 0.024 0). That's my slant wall direction.

Thanks

Regards


All times are GMT -4. The time now is 09:01.