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

Symmetry boundary condition in a heating pipe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2016, 11:13
Talking Symmetry boundary condition in a heating pipe
  #1
New Member
 
Alberto Karkour
Join Date: Jul 2016
Location: Maracaibo, Venezuela
Posts: 6
Rep Power: 9
albertokarkour is on a distinguished road
Hello! Me and a friend are solving an example from Victor's Pozzobon tutorials, example 8 to be specific and we are having troubles setting the 'symmetry' boundary condition, when we set it in the Temperature file like this:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 20;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 20;
    }

    outlet
    {
        type            zeroGradient;
    }

    wall
    {
        type            convectiveHeatFlux;
    }

    axis
    {
        type            symmetry;
    }
    
    back
    {
        type            wedge;
    }

    front
    {
        type            wedge;
    }

}

// ************************************************************************* //
We keep getting this message after running the solver:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
|*---------------------------------------------------------------------------*|
|* OpenFOAM for Windows 16.06 (v1)                                           *|
|* Built by CFD Support, www.cfdsupport.com (based on Symscape).             *|
\*---------------------------------------------------------------------------*/
Build  : 3.0.x-ac3f6c67e02f
Exec   : C:\OpenFOAM\ALBERTO-3.0.x\platforms\cygwin64mingw-w64DPInt32Opt\bin\simpleThermFoam.exe
Date   : Dec 29 2016
Time   : 15:52:54
Host   : "ALBERTOKARKOUR"
PID    : 1660
Case   : C:/OpenFOAM/ALBERTO-3.0.x/run/simpleThermFoam
nProcs : 1
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: convergence criteria
    field p      tolerance 1e-006
    field U      tolerance 0.01
    field T      tolerance 1e-006

Reading field p

--> FOAM Warning :
    From function polyBoundaryMesh::groupPatchIDs() const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 461
    Patch wall specifies a group wall which is also a patch name. This might give problems later on.
Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Reading field T



--> FOAM FATAL IO ERROR:

    patch type 'patch' not constraint type 'symmetry'
    for patch axis of field T in file "C:/OpenFOAM/ALBERTO-3.0.x/run/simpleThermFoam/0/T"

file: C:/OpenFOAM/ALBERTO-3.0.x/run/simpleThermFoam/0/T.boundaryField.axis from line 41 to line 41.

    From function symmetryFvPatchField<Type>::symmetryFvPatchField
(
    const fvPatch& p,
    const Field<Type>& field,
    const dictionary& dict
)

    in file fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.C at line 99.

FOAM exiting
What can we do to solve the error?

Many Thanks!
albertokarkour is offline   Reply With Quote

Old   December 29, 2016, 12:51
Default
  #2
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 96
Rep Power: 14
arvindpj is on a distinguished road
Based on your 0/T file, I am seeing that you are trying to run a 2D axisymmetric simulation.

Place the createPatchDict file in "system" directory and run "createPatch".
This will remove the patches with no faces in them namely the pathch: axis


Below are the contents of createPatchDict

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Do a synchronisation of coupled points after creation of any patches.
// Note: this does not work with points that are on multiple coupled patches
//       with transformations (i.e. cyclics).
pointSync false;

// Patches to create. An empty patch list just removes patches with zero
// faces from $FOAM_CASE/constant/polyMesh/boundary.
patches
(
);

// ************************************************************************* //
Cheers

Last edited by arvindpj; December 29, 2016 at 14:54.
arvindpj 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
several fields modified by single boundary condition schröder OpenFOAM Programming & Development 3 April 21, 2015 05:09
rotating pipe flow wall boundary condition problem preetam69 FLUENT 0 October 8, 2013 11:16
symmetry boundary condition icemaniac178 CFX 3 March 13, 2011 05:40
farfield Vs symmetry boundary condition Rajat FLUENT 1 October 21, 2005 13:53
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 04:09.