I am a retired engineer with an interest in hypersonic flows. I was trying to install hy2foam to play around with it a bit. Many thanks for having this resource available to the community.
I have installed OF6 (1706) and downloaded the hy2foam files
git clone https://github.com/vincentcasseau/hyStrath.git
and tried to compile it as
cd hyStrath
./install-all.sh 8 > log.install.hy2foam 2>&1 &
I use gcc/7.3.0 and openmpi/3.1.3
The first error I get is ...
wmake ./strathChemistryModel
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
wmakeLnInclude error: base directory /basepath/src/thermophysicalModels/chemistrySolver/ does not exist
Indeed
ls /basepath/src/thermophysicalModels/
shows chemistryModel (not chemistrySolver)
-rwxrwx---+ 1 641 Nov 14 16:41 Allwmake
drwxrwx---+ 13 512 Nov 14 17:05 specie
drwxrwx---+ 7 512 Nov 14 17:05 solidSpecie
drwxrwx---+ 9 512 Nov 14 17:05 thermophysicalProperties
drwxrwx---+ 11 512 Nov 14 17:05 basic
drwxrwx---+ 11 32768 Nov 14 17:06 reactionThermo
drwxrwx---+ 9 512 Nov 14 17:07 laminarFlameSpeed
drwxrwx---+ 7 512 Nov 14 17:07 chemistryModel
drwxrwx---+ 8 512 Nov 14 17:09 barotropicCompressibilityModel
drwxrwx---+ 5 512 Nov 14 17:09 SLGThermo
drwxrwx---+ 6 512 Nov 14 17:09 solidThermo
drwxrwx---+ 8 512 Nov 14 17:09 solidChemistryModel
drwxrwx---+ 9 512 Nov 14 17:10 radiation
after modifying
$sendingDir/src/thermophysicalModels/strath/strathChemistryModel/Make/options to
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
the error goes away but I get another set of errors (see below).
Is there an error in my compilation procedure?
Thanks
Iain
functionObjects/specieReactionRates/specieReactionRates.C: In constructor ‘Foam::functionObjects::specieReactionRates::specieReactionRates(const Foam::word&, const Foam::Time&, const Foam::dictionary&)’:
functionObjects/specieReactionRates/specieReactionRates.C:81:21: error: there are no arguments to ‘file’ that depend on a templa
te parameter, so a declaration of ‘file’ must be available [-fpermissive]
writeFileHeader(file());
^~~~
functionObjects/specieReactionRates/specieReactionRates.C:81:21: note: (if you use ‘-fpermissive’, G++ will accept your code, bu
t allowing the use of an undeclared name is deprecated)
functionObjects/specieReactionRates/specieReactionRates.C: In member function ‘virtual bool Foam::functionObjects::specieReactio
nRates::write()’:
functionObjects/specieReactionRates/specieReactionRates.C:125:19: error: there are no arguments to ‘file’ that depend on a templ
ate parameter, so a declaration of ‘file’ must be available [-fpermissive]
writeTime(file());
^~~~
functionObjects/specieReactionRates/specieReactionRates.C:126:9: error: there are no arguments to ‘file’ that depend on a templa
te parameter, so a declaration of ‘file’ must be available [-fpermissive]
file() << token::TAB << ri;
^~~~
functionObjects/specieReactionRates/specieReactionRates.C:149:13: error: there are no arguments to ‘file’ that depend on a templ
ate parameter, so a declaration of ‘file’ must be available [-fpermissive]
file() << token::TAB << sumVRRi/V;
^~~~
functionObjects/specieReactionRates/specieReactionRates.C:152:9: error: there are no arguments to ‘file’ that depend on a templa
te parameter, so a declaration of ‘file’ must be available [-fpermissive]
file() << nl;
^~~~
functionObjects/specieReactionRates/specieReactionRates.C:155:5: error: there are no arguments to ‘file’ that depend on a templa
te parameter, so a declaration of ‘file’ must be available [-fpermissive]
file() << nl << endl;
^~~~
functionObjects/specieReactionRates/specieReactionRates.C: In instantiation of ‘Foam::functionObjects::specieReactionRates::specieReactionRates(const Foam::word&, const Foam::Time&, const Foam::dictionary&) [with ChemistryModelType = Fo
am::rho2ChemistryModel]’:
/lcrc/project/NE_SciDAC/shashi/gccOpenFoam6/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/functionObject.H:173:9: required from ‘
static Foam::autoPtrFoam::functionObject Foam::functionObject::adddictionaryConstructorToTable::New(const
Foam::word&, const Foam::Time&, const Foam::dictionary&) [with functionObjectType = Foam::functionObjects::specieReactionRates]’
/lcrc/project/NE_SciDAC/shashi/gccOpenFoam6/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/functionObject.H:173:9: required from ‘
Foam::functionObject::adddictionaryConstructorToTable::adddictionaryConstructorToTable(const Foam::word&) [w
ith functionObjectType = Foam::functionObjects::specieReactionRatesFoam::rho2ChemistryModel]’
functionObjects/specieReactionRates/specieReactionRates.C:178:5: required from here
functionObjects/specieReactionRates/specieReactionRates.C:79:5: error: no matching function for call to ‘Foam::functionObjects::
writeFile::writeFile(const Foam::objectRegistry&, const Foam::word&, const Foam::word&, const Foam::dictionary&)’
)
^
In file included from /lcrc/project/NE_SciDAC/shashi/gccOpenFoam6/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/volRegion.H:70:
0,
from functionObjects/specieReactionRates/specieReactionRates.H:48,
from functionObjects/specieReactionRates/specieReactionRates.C:26:
/lcrc/project/NE_SciDAC/shashi/gccOpenFoam6/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/writeFile.H:93:9: note: candidate: Foam::
functionObjects::writeFile::writeFile(const Foam::objectRegistry&, const Foam::word&)
writeFile
^~~~~~~~~
/lcrc/project/NE_SciDAC/shashi/gccOpenFoam6/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/writeFile.H:93:9: note: candidate expec
ts 2 arguments, 4 provided
/lcrc/project/NE_SciDAC/shashi/gccOpenFoam6/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/writeFile.H:75:9: note: candidate: Foam::
functionObjects::writeFile::writeFile(const Foam::functionObjects::writeFile&)
writeFile(const writeFile&);
^~~~~~~~~
/lcrc/project/NE_SciDAC/shashi/gccOpenFoam6/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/writeFile.H:75:9: note: candidate expec
ts 1 argument, 4 provided
functionObjects/specieReactionRates/specieReactionRates.C:81:25: error: ‘file’ was not declared in this scope
writeFileHeader(file());
~~~~^~
functionObjects/specieReactionRates/specieReactionRates.C:81:25: note: suggested alternative: ‘kill’
writeFileHeader(file());
~~~~^~
kill
functionObjects/specieReactionRates/specieReactionRates.C: In instantiation of ‘bool Foam::functionObjects::specieReactionRates<
ChemistryModelType>::write() [with ChemistryModelType = Foam::rho2ChemistryModel]’:
functionObjects/specieReactionRates/specieReactionRates.C:184:1: required from here
functionObjects/specieReactionRates/specieReactionRates.C:125:23: error: ‘file’ was not declared in this scope
writeTime(file());
~~~~^~
functionObjects/specieReactionRates/specieReactionRates.C:125:23: note: suggested alternative: ‘kill’
writeTime(file());
~~~~^~
kill
functionObjects/specieReactionRates/specieReactionRates.C:155:9: error: ‘file’ was not declared in this scope
file() << nl << endl;
~~~~^~
functionObjects/specieReactionRates/specieReactionRates.C:155:9: note: suggested alternative: ‘kill’
file() << nl << endl;
~~~~^~
kill
make: *** [Make/linux64GccDPInt32Opt/functionObjects/specieReactionRates/specieReactionRates.o] Error 1
make: *** Waiting for unfinished jobs....