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

What is the correct way to initialize a spherical farfield domain?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2016, 06:47
Default What is the correct way to initialize a spherical farfield domain?
  #1
Member
 
Ioannis Tsavlidis
Join Date: Nov 2016
Location: Greece
Posts: 29
Rep Power: 7
jeytsav is on a distinguished road
Hello people

I would like to ask what is the way to initialize a spherical farfield domain?

Using the following BCs I get a weird initialization with potentialFoam (OFv4.1) as shown below

view1.PNG view2.PNG view3.PNG

It is about a simple spherical body into a farfield domain. I have only 3 boundaries (see code)



Here is my code


Boundaries "/constant/polyMesh/boundary"

Code:
FoamFile
{
	version 2.0;
	format ascii;
	class polyBoundaryMesh;
	location "";
	object boundary;
}

3
(

	farfield
	{
		type patch;
		startFace 77179;
		nFaces 3670;
	}

	body
	{
		type wall;
		startFace 80849;
		nFaces 162;
	}

	symmetry
	{
		type symmetry;
		startFace 81011;
		nFaces 2438;
	}

)
Velocity boundary condition "/0/U"

Code:
FoamFile
{
	version 2.0;
	format ascii;
	class volVectorField;
	location "";
	object U;
}

dimensions [0 1 -1 0 0 0 0];

internalField uniform ( 2.5 0. 0. );


boundaryField
{
	farfield
	{
		type inletOutlet;
		inletValue uniform (2.5 0. 0.);
		value	 uniform (2.5 0. 0.);
	}

	body
	{
		type fixedValue;
		value	 uniform (0. 0. 0.);
	}

	symmetry
	{
		type symmetry;
	}


}
Pressure boundary conditions "0/p"

Code:
FoamFile
{
	version 2.0;
	format ascii;
	class volScalarField;
	location "";
	object p;
}

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0.;

boundaryField
{
	farfield
	{
		type outletInlet;
                value uniform 0;
                outletValue uniform 0;

	}

	body
	{
		type zeroGradient;
	}

	symmetry
	{
		type symmetry;
	}


}

The velocity does not advance inside the domain (as would be expected) and just stays in the half boundary (following strange patterns).

Does anyone know what is the correct way to initialize such a field.? I have tried various boundary conditions until now.

Thanks everyone in advance for spending their time for this!

Have a nice day!
jeytsav is offline   Reply With Quote

Reply

Tags
farfield, openfoam 4.1, potential flow, potentialfoam, spherical

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat transfer within a porous domain rbezerra CFX 5 January 9, 2015 05:06
Setting rotating frame of referece. RPFigueiredo CFX 3 October 28, 2014 04:59
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Is this correct? (Rotating domain) paulo CFX 10 June 17, 2010 13:19
CFX Solver Memory Error mike CFX 1 March 19, 2008 07:22


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