PeterL89 |
October 12, 2018 11:38 |
timeVaryingMappedFixedValue not working without headers!
Dear all foamers,
I am trying to surface sample the seabed pressure beneath regular progressive waves and imposing this pressure data to a new domain where a constitutive soil model is solving Biots equations for pore pressure development.
I use the surface sampling utility to map the seabed pressures in the wave model as such:
Code:
functions
{
surfaces1
{
type surfaces;
functionObjectLibs ("libsampling.so");
writeControl adjustableRunTime;
writeInterval 1;
enabled true;
surfaceFormat boundaryData;
fields
(
p_rgh
p
);
interpolationScheme cellPointFace;
surfaces
(
inlet
{
type patch;
patches (bottom);
triangulate false;
}
);
}
}
And that seems to be working fine. I copy my files to my soil folder into /constant/boundaryData/top/... When I try to run OpenFOAM complains that no header is given in the boundaryData files:
Code:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-ext-f3027b3161e4
Exec : twoSurfacePlastBiotFoam
Date : Oct 12 2018
Time : 17:35:49
Host : n-62-27-21
PID : 1191
Case : /work3/s123098/soil_waveFlume_test_2
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Reading soil properties
Reading pore pressure field
--> FOAM Serious Error :
From function IOobject::readHeader(Istream&)
in file db/IOobject/IOobjectReadHeader.C at line 90
Reading "/work3/s123098/soil_waveFlume_test_2/constant/boundaryData/top/0/p" at line 2
First token could not be read or is not the keyword 'FoamFile'
Check header is of the form:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class scalarAverageField;
location "constant/boundaryData/top/0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
--> FOAM FATAL IO ERROR:
problem while reading header for object p
file: /work3/s123098/soil_waveFlume_test_2/constant/boundaryData/top/0/p at line 2.
From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 70.
FOAM exiting
Now I am using OpenFOAM v1712 with waves2foam for the generating waves, while using OpenFOAM-1.6-ext for the soil model (as it was developed for this), but untill now I haven't had any problems with compatibility.
Anybody has any idea how to generate output files from surface sampling with appropriate headers, without having to do this manually or set up a script?
Best Regards :)
Peter
|