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

Time dependent boundary condition for VOF function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2013, 04:13
Default Time dependent boundary condition for VOF function
  #1
Member
 
HouKen
Join Date: Jul 2011
Posts: 67
Rep Power: 15
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, 14:34
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
i offer you using groovyBC, give you much more functionality
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply


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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 14:06
Time dependent custom field function rachana Fluent UDF and Scheme Programming 1 May 13, 2014 07:55
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 16:27.