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

Time dependent boundary condition for VOF function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 24, 2013, 03:13
Default Time dependent boundary condition for VOF function
  #1
Member
 
HouKen
Join Date: Jul 2011
Posts: 64
Rep Power: 5
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/)

airinlet{
type uniformFixedValue;
uniformValue table
(
(0 0)
(1.0 1)
);
}

Then I got the following error:
--> FOAM FATAL 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
#10
at ~/OpenFOAM/OpenFOAM-2.1.x/applications/solvers/multiphase/interFoam/createFields.H:71
#11 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12
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, 13:34
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,048
Blog Entries: 1
Rep Power: 13
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
i offer you using groovyBC, give you much more functionality
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Reply

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 04: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 23:46.