CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Time dependent boundary condition for VOF function

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

LinkBack Thread Tools Display Modes
Old   January 24, 2013, 04:13
Default Time dependent boundary condition for VOF function
Join Date: Jul 2011
Posts: 66
Rep Power: 8
houkensjtu is on a distinguished road
Hi foamer!
I made a axis-sym channel case to simulate bubble flow in small tube and I am using interFoam as my solver.
On the inlet, half of the surface is set as a liquid inlet, so boundary condition for the VOF function(alpha) is constant 1, the other half being air inlet, so the boundary condition for the VOF function(alpha) is constant 0.
Everything was fine when I applied this as fixedValue BC.
Now I want to implement a time-dependent air jet, which means for example, from t=0 to t=1.0, alpha = 0 and after t=1.0, alpha become 1(on inlet).

I applied this by uniformFixedValue like (here is my alpha file in 0/)

type uniformFixedValue;
uniformValue table
(0 0)
(1.0 1)

Then I got the following error:
object is not allocated

From function const T& Foam::autoPtr<T>:perator()() const
in file /home/houken/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/autoPtrI.H at line 132.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ~/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/printStack.C:201
#1 Foam::error::abort() at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/error.C:249
#2 Foam::Ostream& Foam:perator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/errorManip.H:85
#3 Foam::autoPtr<Foam:ataEntry<double> >:perator()() const at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/autoPtrI.H:137
#4 Foam::uniformFixedValueFvPatchField<double>::unifo rmFixedValueFvPatchField(Foam::uniformFixedValueFv PatchField<double> const&, Foam:imensionedField<double, Foam::volMesh> const&) at ~/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C:102
#5 Foam::uniformFixedValueFvPatchField<double>::clone (Foam:imensionedField<double, Foam::volMesh> const&) const at ~/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H:125
#6 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricB oundaryField(Foam:imensionedField<double, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField const&) at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:198
#7 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/GeometricField.C:507
#8 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>:ldTime() const at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/GeometricField.C:778
#9 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>:ldTime() at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/GeometricField.C:805
at ~/OpenFOAM/OpenFOAM-2.1.x/applications/solvers/multiphase/interFoam/createFields.H:71
#11 __libc_start_main in "/lib/x86_64-linux-gnu/"
in "/home/houken/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPDebug/bin/interFoam"
Aborted (core dumped)

Does it means uniformFixedValue could not be applied to alpha? Or I made any mistake on setting it ?

Plz help!
houkensjtu is offline   Reply With Quote

Old   January 25, 2013, 14:34
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,237
Blog Entries: 1
Rep Power: 18
nimasam is on a distinguished road
i offer you using groovyBC, give you much more functionality
Telegram channel (
My Weblog in Persian(
My Personal Website (
nimasam 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
Time dependent custom field function rachana Fluent UDF and Scheme Programming 1 May 13, 2014 06:55
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00

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