Commit 46bf38d5 authored by Henry's avatar Henry
Browse files

Ensure fields are initialized before mapping to avoid SIGFPE caused by uninitialized values

parent 24c80b1e
......@@ -9,6 +9,6 @@ cleanCase
cd ../hopperEmptying
cleanCase
rm -rf 0/lagrangian
rm -rf 0
# ----------------------------------------------------------------- end-of-file
......@@ -12,6 +12,8 @@ runApplication reconstructPar -latestTime
cd ..
cd hopperEmptying
rm -rf 0
cp -r 0.org 0
runApplication blockMesh
runApplication mapFields ../hopperInitialState -sourceTime latestTime
runApplication decomposePar
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object mu;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
internalField uniform 1.2e-05;
boundaryField
{
walls
{
type calculated;
value uniform 1.2e-05;
}
frontAndBack
{
type calculated;
value uniform 1.2e-05;
}
inlet
{
type calculated;
value uniform 1.2e-05;
}
outlet
{
type calculated;
value uniform 1.2e-05;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object rho;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -3 0 0 0 0 0];
internalField uniform 1.2;
boundaryField
{
walls
{
type calculated;
value uniform 1.2;
}
frontAndBack
{
type calculated;
value uniform 1.2;
}
inlet
{
type calculated;
value uniform 1.2;
}
outlet
{
type calculated;
value uniform 1.2;
}
}
// ************************************************************************* //
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment