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

Problems with interfaceHeight

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2018, 06:24
Default Problems with interfaceHeight
  #1
New Member
 
Christian Jähnel
Join Date: Nov 2016
Posts: 11
Rep Power: 6
ch_jaehnel is on a distinguished road
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.

Last edited by ch_jaehnel; September 24, 2018 at 07:45.
ch_jaehnel is offline   Reply With Quote

Old   March 22, 2019, 05:58
Default
  #2
New Member
 
Juan Pablo Carbajal
Join Date: Mar 2019
Posts: 1
Rep Power: 0
juanpi is on a distinguished road
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
juanpi is offline   Reply With Quote

Old   November 1, 2020, 20:46
Default interface height along a slant wall
  #3
New Member
 
A P
Join Date: Feb 2020
Location: Indiana, USA
Posts: 9
Rep Power: 2
prakashPra is on a distinguished road
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
prakashPra is offline   Reply With Quote

Reply

Tags
interfaceheight, postprocessing, probe function

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 Yesterday 12:12
[mesh manipulation] Problems with rotational cyclic boundaries TReviol OpenFOAM Meshing & Mesh Conversion 8 July 11, 2014 04:45
[ICEM] Flow channel meshing problems StefanG ANSYS Meshing & Geometry 19 May 15, 2012 07:44
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 06:44
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 12:00


All times are GMT -4. The time now is 02:30.