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

How to set empty field in multiphaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2022, 23:00
Default How to set empty field in multiphaseEulerFoam
  #1
New Member
 
Akshay
Join Date: Jan 2020
Posts: 28
Rep Power: 6
enthusiast is on a distinguished road
Dear foamers,
I have a geometry with one inlet where the two-phase (water-oxygen) enters the square container which is half-filled with water.

I need to keep the other half empty so that I can collect the data of oxygen separation from water, but I am not able to not set the other half, as the solver don't run without setting it.

Code:
defaultFieldValues
(
    volScalarFieldValue alpha.oxygen 0
    volScalarFieldValue alpha.water 0
);

regions
(
  
	boxToCell
    {
		box (0 0 0) (1.2 0.4 1);
        fieldValues
        (
            volScalarFieldValue alpha.oxygen 0
			volScalarFieldValue alpha.water 1
        );
    }
  
);
I tried it but no use, can someone please suggest how I can to initialize cells without alpha of any phase.

I am using openfoam version 8.

I have attached the fields set with alpha.oxygen as 1 and alpha.water as 0, this was the only way for me to run the simulation.

Can someone please suggest how I can set an empty intial phase property for the space above water in the container?

setFields.PNG

Thank you
Akshay
enthusiast is offline   Reply With Quote

Reply

Tags
two phase euler foam


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
Using gnuplot to plot probe data Rotidpor OpenFOAM 3 March 9, 2022 06:44
Set boundary value of 1 field equal to another field Saideep OpenFOAM 3 October 31, 2016 10:58
[snappyHexMesh] sHM quality of multi-region aminem OpenFOAM Meshing & Mesh Conversion 0 April 16, 2015 12:38
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
How to set environment variables kanishka OpenFOAM Installation 1 September 4, 2005 11:15


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