CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Swak4Foam funkyDoCalc with OF2.3 massflow

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 2 Post By gschaider
  • 1 Post By NiFl

Reply
 
LinkBack Thread Tools Display Modes
Old   March 11, 2014, 07:03
Default Swak4Foam funkyDoCalc with OF2.3 massflow
  #1
New Member
 
Join Date: Jul 2013
Posts: 8
Rep Power: 5
NiFl is on a distinguished road
Hi everybody,

I'm using swak2foam with OpenFoam 2.3 and I am trying to run some script on my data:

I have a file called Massflow.C:
________________________
MassFlow
{
valueType patch;
patchName outlet;



variables (
"threshold=0.5;"
"water=sum(alpha.coolant>threshold?mag(U*Sf() ):0);");
expression "water";

accumulations (
average
);
}
___________________

But when I run it like in OF 2.2, with 'funkyDoCalc -time '0.1:1' Massflow.C' it gives me an error:

___________________
Time = 0.1
MassFlow : swak4Foam: Setting default mesh
swak4Foam: Allocating new repository for sampledGlobalVariables
--> FOAM Warning :
From function ConcretePluginFunction<DriverType>::exists
in file lnInclude/ConcretePluginFunction.C at line 121
Constructor table of plugin functions for PatchValueExpressionDriver is not initialized


--> FOAM FATAL ERROR:
Parser Error for driver PatchValueExpressionDriver at "1.5-9" :"field alpha not existing or of wrong type"
"sum(alpha.coolant>threshold?mag(Sf()):0)"
^^^^^
------|

Context of the error:


- From dictionary: MassFlow.C.MassFlow
Evaluating expression "sum(alpha.coolant>threshold?mag(Sf()):0)"


From function parsingValue
in file lnInclude/CommonValueExpressionDriverI.H at line 1188.

FOAM exiting
__________________________

But alpha.coolant is my phase in my running case... Is he confused because of the point in alpha.coolant?

Cheers
Nils
NiFl is offline   Reply With Quote

Old   March 11, 2014, 16:31
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by NiFl View Post
Hi everybody,

I'm using swak2foam with OpenFoam 2.3 and I am trying to run some script on my data:

I have a file called Massflow.C:
________________________
MassFlow
{
valueType patch;
patchName outlet;



variables (
"threshold=0.5;"
"water=sum(alpha.coolant>threshold?mag(U*Sf() ):0);");
expression "water";

accumulations (
average
);
}
___________________

But when I run it like in OF 2.2, with 'funkyDoCalc -time '0.1:1' Massflow.C' it gives me an error:

___________________
Time = 0.1
MassFlow : swak4Foam: Setting default mesh
swak4Foam: Allocating new repository for sampledGlobalVariables
--> FOAM Warning :
From function ConcretePluginFunction<DriverType>::exists
in file lnInclude/ConcretePluginFunction.C at line 121
Constructor table of plugin functions for PatchValueExpressionDriver is not initialized


--> FOAM FATAL ERROR:
Parser Error for driver PatchValueExpressionDriver at "1.5-9" :"field alpha not existing or of wrong type"
"sum(alpha.coolant>threshold?mag(Sf()):0)"
^^^^^
------|

Context of the error:


- From dictionary: MassFlow.C.MassFlow
Evaluating expression "sum(alpha.coolant>threshold?mag(Sf()):0)"


From function parsingValue
in file lnInclude/CommonValueExpressionDriverI.H at line 1188.

FOAM exiting
__________________________

But alpha.coolant is my phase in my running case... Is he confused because of the point in alpha.coolant?

Cheers
Nils
Yep. And there is a workaround. Search for "swak aliases" here and you should find something fitting (the problem surfaces in a number of forms so you might easily have missed that)
lourencosm and kostnermo like this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 17, 2014, 05:25
Default
  #3
New Member
 
Join Date: Jul 2013
Posts: 8
Rep Power: 5
NiFl is on a distinguished road
Thank you very much!

I changed my code to
___________________________
MassFlow
{
valueType patch;
patchName outlet;

aliases{
alpha alpha.coolant;
}


variables (
"threshold=0.5;"
"water=sum(alpha>threshold?mag(U*Sf() ):0);"
);
expression "water";

accumulations (
min
max
average
sum
);
}
________________________

Works!

Cheers
lourencosm likes this.
NiFl is offline   Reply With Quote

Old   March 19, 2014, 20:26
Default Error compiling Breeder_2.0 with OF2.3.0
  #4
New Member
 
caduqued
Join Date: Apr 2009
Location: UK
Posts: 15
Rep Power: 9
caduqued is on a distinguished road
Hi Everybody,

I am trying to compile the version of swak4Foam included in Breeder_2.0 (which in theory should work with OF 2.3.0). I am using that version of swak because I had to download a snapshot of the foam-extend project (problems accessing hg or git through a proxy server... another story...)

After the Allwmake, I get the following:

Code:
This is a clean install
Reading variables from 'swakConfiguration'
Checking swak4Foam-version and generating file
abort: There is no Mercurial repository here (.hg not found)!
Swak version is 0.3.0
Bison is version 2.4.3
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 3 Patch 0 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to simpleFunctionObjects/lnInclude
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file helpers/printSwakVersion.C
Making dependency list for source file helpers/switchableNotImplemented.C
Making dependency list for source file helpers/DebugOStream.C
Making dependency list for source file repositories/RepositoryBase.C
Making dependency list for source file repositories/SurfacesRepository.C
Making dependency list for source file repositories/MeshesRepository.C
Making dependency list for source file repositories/SetsRepository.C
Making dependency list for source file repositories/GlobalVariablesRepository.C
Making dependency list for source file namedEnums/MeshInterpolationOrder.C
Making dependency list for source file namedEnums/LogicalAccumulationNamedEnum.C
Making dependency list for source file namedEnums/NumericAccumulationNamedEnum.C
Making dependency list for source file ExpressionDriverWriter.C
Making dependency list for source file ExpressionResult/ExpressionResult.C
Making dependency list for source file ExpressionResult/StoredExpressionResult.C
Making dependency list for source file ExpressionResult/DelayedExpressionResult.C
Making dependency list for source file ExpressionResult/StackExpressionResult.C
Making dependency list for source file ExpressionResult/StoredStackExpressionResult.C
Making dependency list for source file setsAndSurfaces/swakRegistryProxySurface.C
Making dependency list for source file setsAndSurfaces/swakRegistryProxySet.C
Making dependency list for source file makeSwakDataEntry.C
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionParser.yy due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionParser.yy due to No such file or directory
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionParser.yy due to No such file or directory
Making dependency list for source file SubsetValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy due to No such file or directory
Making dependency list for source file CommonValueExpressionDriver.C
Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedFvPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file directMappedPointPatch.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionDriver.C due to No such file or directory
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedPatchBase.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedFvPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file directMappedPointPatch.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file PatchValueExpressionDriver.C due to No such file or directory
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SubsetValueExpressionLexer.ll
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file SubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SetSubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SetSubsetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file CellSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FaceSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file CellZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C due to No such file or directory
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C due to No such file or directory
Making dependency list for source file SampledSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSetValueExpressionDriver.C due to No such file or directory
Making dependency list for source file initSwakFunctionObject.C
Making dependency list for source file plugins/CommonPluginFunction.C
Making dependency list for source file plugins/FieldValuePluginFunction.C
could not open file FieldValueExpressionParser.tab.hh for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedFvPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file directMappedPointPatch.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file plugins/FieldValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/PatchValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file plugins/PatchValuePluginFunction.C due to No such file or directory
could not open file directMappedPatchBase.H for source file plugins/PatchValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/CellSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellZoneValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceZoneValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/SampledSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSetValuePluginFunction.C due to No such file or directory
Making dependency list for source file plugins/SampledSurfaceValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory
SOURCE=helpers/printSwakVersion.C ; wmakeScheduler icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,525,654,819,1125,1476,1505,1572 -xHost -O2 -no-prec-div  -DNoRepository -IMake/linux64IccDPOpt       -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/fileFormats/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/surfMesh/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/printSwakVersion.o
SOURCE=helpers/switchableNotImplemented.C ; wmakeScheduler icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,525,654,819,1125,1476,1505,1572 -xHost -O2 -no-prec-div  -DNoRepository -IMake/linux64IccDPOpt       -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/fileFormats/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/surfMesh/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/switchableNotImplemented.o
SOURCE=helpers/DebugOStream.C ; wmakeScheduler icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,525,654,819,1125,1476,1505,1572 -xHost -O2 -no-prec-div  -DNoRepository -IMake/linux64IccDPOpt       -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/fileFormats/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/surfMesh/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/DebugOStream.o
SOURCE=repositories/RepositoryBase.C ; wmakeScheduler icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,525,654,819,1125,1476,1505,1572 -xHost -O2 -no-prec-div  -DNoRepository -IMake/linux64IccDPOpt       -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/fileFormats/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/surfMesh/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/RepositoryBase.o
SOURCE=repositories/SurfacesRepository.C ; wmakeScheduler icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,525,654,819,1125,1476,1505,1572 -xHost -O2 -no-prec-div  -DNoRepository -IMake/linux64IccDPOpt       -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/fileFormats/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/surfMesh/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/SurfacesRepository.o
SOURCE=repositories/MeshesRepository.C ; wmakeScheduler icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,525,654,819,1125,1476,1505,1572 -xHost -O2 -no-prec-div  -DNoRepository -IMake/linux64IccDPOpt       -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/fileFormats/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/surfMesh/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/esrhaq/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/MeshesRepository.o
lnInclude/MeshInterpolationOrder.H(67): error: class "Foam::meshToMesh" has no member "order"
      typedef meshToMesh::order value;
                          ^

repositories/MeshesRepository.H(75): error: class "Foam::meshToMesh" has no member "order"
      HashTable<meshToMesh::order,word> interpolationOrder_;
                            ^

repositories/MeshesRepository.H(143): error: class "Foam::meshToMesh" has no member "order"
          meshToMesh::order val
                      ^

repositories/MeshesRepository.H(147): error: class "Foam::meshToMesh" has no member "order"
      meshToMesh::order getInterpolationOrder(
                  ^

repositories/MeshesRepository.C(236): error: no instance of constructor "Foam::meshToMesh::meshToMesh" matches the argument list
            argument types are: (Foam::fvMesh, const Foam::fvMesh)
               new meshToMesh(
                             ^

repositories/MeshesRepository.C(322): error: class "Foam::meshToMesh" has no member "order"
      meshToMesh::order val
                  ^

repositories/MeshesRepository.C(328): error: class "Foam::meshToMesh" has no member "order"
  meshToMesh::order MeshesRepository::getInterpolationOrder(
              ^

repositories/MeshesRepository.C(335): error: class "Foam::meshToMesh" has no member "INTERPOLATE"
          return meshToMesh::INTERPOLATE;
                             ^

compilation aborted for repositories/MeshesRepository.C (code 2)
make: *** [Make/linux64IccDPOpt/MeshesRepository.o] Error 2
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
I have tried to figure it out, and to look for it in the message board, and here in cfd-online, but I have not find anything related at all.

Could any of you give me some help regarding this?

Any help is very much appreciated...
caduqued is offline   Reply With Quote

Old   March 20, 2014, 04:40
Default
  #5
New Member
 
Join Date: Jul 2013
Posts: 8
Rep Power: 5
NiFl is on a distinguished road
Hi,

I don't know if it's the same problem but I had some similar looking trouble on sl6 due to gcc, so I successfully tried devtoolset.
Did you check your compiler version?

Edit: Sorry, that doesn't make sense, since you successfully installed OF2.3 ....... ignore my post.

Cheers
NiFl
NiFl is offline   Reply With Quote

Old   March 20, 2014, 13:27
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by caduqued View Post
Hi Everybody,

I am trying to compile the version of swak4Foam included in Breeder_2.0 (which in theory should work with OF 2.3.0). I am using that version of swak because I had to download a snapshot of the foam-extend project (problems accessing hg or git through a proxy server... another story...)

After the Allwmake, I get the following:

Code:
This is a clean install
Reading variables from 'swakConfiguration'
Checking swak4Foam-version and generating file
abort: There is no Mercurial repository here (.hg not found)!
Swak version is 0.3.0
Bison is version 2.4.3
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 3 Patch 0 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated

<snip>

Make/linux64IccDPOpt/MeshesRepository.o
lnInclude/MeshInterpolationOrder.H(67): error: class "Foam::meshToMesh" has no member "order"
      typedef meshToMesh::order value;
                          ^

repositories/MeshesRepository.H(75): error: class "Foam::meshToMesh" has no member "order"
      HashTable<meshToMesh::order,word> interpolationOrder_;
                            ^

repositories/MeshesRepository.H(143): error: class "Foam::meshToMesh" has no member "order"
          meshToMesh::order val
                      ^

repositories/MeshesRepository.H(147): error: class "Foam::meshToMesh" has no member "order"
      meshToMesh::order getInterpolationOrder(
                  ^

repositories/MeshesRepository.C(236): error: no instance of constructor "Foam::meshToMesh::meshToMesh" matches the argument list
            argument types are: (Foam::fvMesh, const Foam::fvMesh)
               new meshToMesh(
                             ^

repositories/MeshesRepository.C(322): error: class "Foam::meshToMesh" has no member "order"
      meshToMesh::order val
                  ^

repositories/MeshesRepository.C(328): error: class "Foam::meshToMesh" has no member "order"
  meshToMesh::order MeshesRepository::getInterpolationOrder(
              ^

repositories/MeshesRepository.C(335): error: class "Foam::meshToMesh" has no member "INTERPOLATE"
          return meshToMesh::INTERPOLATE;
                             ^

compilation aborted for repositories/MeshesRepository.C (code 2)
make: *** [Make/linux64IccDPOpt/MeshesRepository.o] Error 2
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
I have tried to figure it out, and to look for it in the message board, and here in cfd-online, but I have not find anything related at all.

Could any of you give me some help regarding this?

Any help is very much appreciated...
Oh brilliant. This happens every time: 2.y.0 comes out. I get me 2.y.x from the git repo and assume "only 10 commits there. Should be technically 2.y.0" and every time there is one class that is modified in these 10 commits.

Try the following. In the file Libraries/swak4FoamParsers/include/swak.H find the lines
Code:
#if FOAM_VERSION4SWAK > VERSION_NR2(2,2) && !defined(FOAM_DEV)
#define FOAM_NEW_MESH2MESH
#endif
and change them to
Code:
#if FOAM_VERSION4SWAK > VERSION_NR(2,3,0) && !defined(FOAM_DEV)
#define FOAM_NEW_MESH2MESH
#endif
Please report whether that works so that I can modify the repo accordingly
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 23, 2014, 15:30
Default
  #7
New Member
 
caduqued
Join Date: Apr 2009
Location: UK
Posts: 15
Rep Power: 9
caduqued is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Oh brilliant. This happens every time: 2.y.0 comes out. I get me 2.y.x from the git repo and assume "only 10 commits there. Should be technically 2.y.0" and every time there is one class that is modified in these 10 commits.

Try the following. In the file Libraries/swak4FoamParsers/include/swak.H find the lines
Code:
#if FOAM_VERSION4SWAK > VERSION_NR2(2,2) && !defined(FOAM_DEV)
#define FOAM_NEW_MESH2MESH
#endif
and change them to
Code:
#if FOAM_VERSION4SWAK > VERSION_NR(2,3,0) && !defined(FOAM_DEV)
#define FOAM_NEW_MESH2MESH
#endif
Please report whether that works so that I can modify the repo accordingly
Hi Bernhard,

Thanks a lot for your feedback, and helpful responses (as usual).

I just did what you advised in previous post. However, now I get the following error message:

Code:
lnInclude/swak.H(258): error #55: too many arguments in invocation of macro "VERSION_NR2"
  #if FOAM_VERSION4SWAK > VERSION_NR2(2,3,0) && !defined(FOAM_DEV)
Just to be clear, here I am working with the port_2.0.X of the development version.

Regards,

Carlos
caduqued is offline   Reply With Quote

Old   March 23, 2014, 15:47
Default It seems it has been fixed
  #8
New Member
 
caduqued
Join Date: Apr 2009
Location: UK
Posts: 15
Rep Power: 9
caduqued is on a distinguished road
Hi Bernhard,

Just to say that I have downloaded another clone of the port_2.0.x, and it seems that now swak4Foam is compiling OK with O.F. 2.3.0

I have just checked it out, and swak.H is as you mentioned in your post, so it is compiling without the fix you mentioned before. So it seems nothing needs to be changed, apart from downloading the proper port_2.0.X (Sorry, my mistake!!!)

Thanks for swak, really!

Regards,

Carlos
caduqued is offline   Reply With Quote

Old   March 24, 2014, 21:06
Default
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by caduqued View Post
Hi Bernhard,

Just to say that I have downloaded another clone of the port_2.0.x, and it seems that now swak4Foam is compiling OK with O.F. 2.3.0

I have just checked it out, and swak.H is as you mentioned in your post, so it is compiling without the fix you mentioned before. So it seems nothing needs to be changed, apart from downloading the proper port_2.0.X (Sorry, my mistake!!!)

Thanks for swak, really!

Regards,

Carlos
So you didn't do "hg pull" "hg update" on the old clone? It was basically on a "pre 2.3-port" state?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 11:31
swak4foam fails in parallel with -otherTime? Phicau OpenFOAM Post-Processing 3 June 26, 2013 13:00
swak4Foam in parallel (massflow on a faveZone)? Peter_600 OpenFOAM 2 January 14, 2013 09:48
Problem with plotting the Massflow in 2D-Axisymmetric Bando STAR-CCM+ 1 June 21, 2012 05:09
MassFlow Function? Absolute MassFlow? Failure in Caclulation eRzBeNgEl CFX 0 May 5, 2011 09:46


All times are GMT -4. The time now is 08:53.