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

2 phase turbulent open channel

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Madi
  • 1 Post By wavefunction

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2016, 14:06
Default 2 phase turbulent open channel
  #1
New Member
 
Madeleine
Join Date: Jun 2016
Posts: 14
Rep Power: 9
Madi is on a distinguished road
Hello Foamers,

I'm quite new in OpenFoam and i try to make a 2 phase turbulent open Channel vor my Master Thesis. Now there a a few very anoying problems.

When I run my simulation the result isn't what i accpected. Normally the water should have the velocity which I have choose, and the air (atmosphere) above the water should have the velocity zero. That doesn't fit in my case (see pictures). How can I solve it?

Also my water level should be constant in the inlet and the outlet. Which isn't the case.

Tank you for your help
Attached Images
File Type: png atmosphere.png (21.3 KB, 64 views)
File Type: png yDirection.png (20.9 KB, 66 views)
Attached Files
File Type: zip 0.zip (3.8 KB, 15 views)
File Type: zip constant.zip (171.6 KB, 9 views)
File Type: zip system.zip (2.8 KB, 11 views)
Madi is offline   Reply With Quote

Old   July 7, 2016, 06:35
Default freestream
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
Hi Madi,

The problem is probably related to the BCs. Use freestream and freestreamPressure boundary conditions for inlet and outlet.

Code:
p_rgh:
    inlet/outlet
    {
        type            freestreamPressure;
    }

p:
    inlet/outlet
    {
        type            calculated;
    }

U/k/epsilon:
    inlet/outlet
    {
    
	type			freestream;
	freestreamValue		$internalField;
    }
Hope this help.
Taataa is offline   Reply With Quote

Old   July 7, 2016, 07:44
Default
  #3
New Member
 
Madeleine
Join Date: Jun 2016
Posts: 14
Rep Power: 9
Madi is on a distinguished road
Hello Taataa,
thanks for your help. I change my BC's but when I now try to run my model i get the following error:
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 ? in "/lib64/libc.so.6"
#3 Foam::multiply(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam:perator*<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<doub le, Foam::fvPatchField, Foam::volMesh> > const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/interFoam"
#5 Foam::incompressible::RASModels::kEpsilon::correct () in "/opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
#6 ? in "/opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/interFoam"
#7 __libc_start_main in "/lib64/libc.so.6"
#8 ? in "/opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/interFoam"
Gleitkomma-Ausnahme (Speicherabzug geschrieben)

I work on this case for a while and have fixed the problem with the constant water level at the inlet and outlet. But my veolcities at the inlet and outlet are so much higher than the inlet velocity I put some pictures and my file cases in the attachement. The blue ones are my original BC's which i have changed into your proposal. It would be grate when you can help me again.

Madi
Attached Images
File Type: png Velocity_inletOutlet.png (17.0 KB, 21 views)
Attached Files
File Type: zip 0.zip (8.6 KB, 14 views)
File Type: zip system.zip (9.6 KB, 6 views)
File Type: zip constant.zip (9.7 KB, 6 views)
Madi is offline   Reply With Quote

Old   July 7, 2016, 08:03
Default
  #4
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
I looked through your case and found this problem:

Change alpha BC to:
Code:
inlet/oulet
    {
    	type			calculated;
    	value			$internalField;
    }
Taataa is offline   Reply With Quote

Old   July 7, 2016, 08:26
Default
  #5
New Member
 
Madeleine
Join Date: Jun 2016
Posts: 14
Rep Power: 9
Madi is on a distinguished road
Hey Taataa,
thanks for your fast answer. But now I have the following error

valueInternalCoeffs cannot be called for a calculatedFvPatchField
on patch inlet of field alpha.water in file "/work/ber/Rinne_2Phasen_turb/0/alpha.water"
You are probably trying to solve for a field with a default boundary condition.

From function calculatedFvPatchField<Type>::valueInternalCoeffs( const tmp<scalarField>&) const
in file /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/calculatedFvPatchField.C at line 154.
Attached Files
File Type: zip 0.zip (8.6 KB, 14 views)
Bashar likes this.
Madi is offline   Reply With Quote

Old   April 5, 2017, 20:53
Default
  #6
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 10
Bashar is on a distinguished road
Quote:
Originally Posted by Madi View Post
Hey Taataa,
thanks for your fast answer. But now I have the following error

valueInternalCoeffs cannot be called for a calculatedFvPatchField
on patch inlet of field alpha.water in file "/work/ber/Rinne_2Phasen_turb/0/alpha.water"
You are probably trying to solve for a field with a default boundary condition.

From function calculatedFvPatchField<Type>::valueInternalCoeffs( const tmp<scalarField>&) const
in file /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/calculatedFvPatchField.C at line 154.
Hi,

I have similar error in my case, did you manage to solve this error?
Bashar
Bashar is offline   Reply With Quote

Old   April 20, 2018, 08:41
Default Same error
  #7
New Member
 
Saicharan
Join Date: Jan 2018
Location: Bangalore, India
Posts: 29
Rep Power: 8
wavefunction is on a distinguished road
Hi all.

Even I have the same error. Did anyone manage to solve it? In my case my field is not even present in the 0/ folder.
Elham likes this.
wavefunction is offline   Reply With Quote

Old   May 18, 2018, 18:46
Default
  #8
New Member
 
Daniel W Theobald
Join Date: Feb 2017
Posts: 10
Rep Power: 9
pm11dt is on a distinguished road
Hi everyone,

I am also having the same issue with my case.

Has anyone found an answer to this issue?

Probably spent a total of 100 hours scrolling through these forums and no one seems to able to answer this question!
pm11dt 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
Problem with divergence TDK FLUENT 13 December 14, 2018 06:00
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
Turbulent transition in channel flow yansheng STAR-CCM+ 11 June 16, 2016 09:05
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 17:18
Yacht in Open Channel Flow andreimour FLUENT 1 October 14, 2010 23:54


All times are GMT -4. The time now is 22:00.