CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Disappeared boundary conditions (https://www.cfd-online.com/Forums/openfoam-bugs/78017-disappeared-boundary-conditions.html)

francescomarra July 9, 2010 13:24

Disappeared boundary conditions
 
Dear all,

I am getting crazy with an issue that looks like a bug but maybe it is only a result of my inexperience with OpenFOAM coding.

I have tried to modify the rhoPisoFoam solver to include a forcing term into the equations of momentum and energy. The code is compiled and executes perfectly apart from the fact that all data files at the different time steps miss the ending section with the indication of boundary conditions and look like that:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.6.x                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      volScalarField;
    location    "0.0005";
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField  nonuniform List<scalar>
61440
(
298.064
297.757
297.578
297.453

.
. (cut lines)
.

299.745
298.457
)
;
    }
}


// ************************************************************************* //

All files in each time directory for every variable have the same behaviour.

The two curly brackets seem a symptom of something wrong.

I am even more surprised that the restart of runs from such time directories with initial fields without the listing of boundary conditions works. Which boundary conditions are assigned in this case ?

Any hint on where I have to look to understand what is happening will be very gratefully appreciated. Let me know which other information I have to provide to allow a clear statement of the problem.

Kindest regards,

Franco

niklas July 9, 2010 14:43

I would guess that you are looking at last lines of the boundary condition values.
Scrolling up a bit will show you the types.

Just search for a name of one of the patches.

francescomarra July 9, 2010 17:40

Good Lord!

You are right !

Thank you so much, Niklas, for your reply. I have always seen boundary conditions listed at the end of files from all tutorials I ran.
I would never discovered it without your advice.

My best regards,

Franco


All times are GMT -4. The time now is 20:43.