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

[swak4Foam] funkyDoCalc with OF2.3 massflow

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 4 Post By gschaider
  • 3 Post By NiFl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2014, 07:03
Default funkyDoCalc with OF2.3 massflow
  #1
New Member
 
Join Date: Jul 2013
Posts: 8
Rep Power: 13
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: 4,225
Rep Power: 51
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)
__________________
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: 13
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
frantov, lourencosm and haydii like 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: 16
Rep Power: 17
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: 13
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: 4,225
Rep Power: 51
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: 16
Rep Power: 17
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: 16
Rep Power: 17
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: 4,225
Rep Power: 51
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

Old   October 31, 2016, 06:09
Default swak4FOAM installation problems on foam extend 1.6
  #10
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi everyone,

I guess this is the most appropriate location to post my problem after receiving no advice on my new thread few days back.

I am using foam-extend 1.6 and using a modified version of interFOAM solver (we tried the same solver even on FE-3.1 but the performance looks better in FE-1.6).

I would like to use groovyBC for my pressure boundary conditions as mentioned here. http://www.cfd-online.com/Forums/ope...her-field.html

I followed the webpage instruction to install swak4FOAM but I am stuck with the following problems.
Code:
Swak version is 0.2.4
Bison is version 3.0.4
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 1 Minor 6 Patch 1.6-ext
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file helpers/printSwakVersion.C
Making dependency list for source file repositories/SurfacesRepository.C
Making dependency list for source file repositories/GlobalVariablesRepository.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 namedEnums/MeshInterpolationOrder.C
Making dependency list for source file ExpressionDriverWriter.C
Making dependency list for source file namedEnums/NumericAccumulationNamedEnum.C
Making dependency list for source file ExpressionResult/StoredExpressionResult.C
Making dependency list for source file namedEnums/LogicalAccumulationNamedEnum.C
Making dependency list for source file ExpressionResult/StackExpressionResult.C
Making dependency list for source file ExpressionResult/ExpressionResult.C
Making dependency list for source file ExpressionResult/DelayedExpressionResult.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 FieldValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionParser.yy
Making dependency list for source file SubsetValueExpressionParser.yy
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
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C
Making dependency list for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
Making dependency list for source file SubsetValueExpressionLexer.ll
Making dependency list for source file SubsetValueExpressionDriver.C
Making dependency list for source file SetSubsetValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy
could not open file mappedFvPatch.H for source file FieldValueExpressionParser.yy
could not open file mappedPointPatch.H for source file FieldValueExpressionParser.yy
Making dependency list for source file CellSetValueExpressionDriver.C
Making dependency list for source file CellZoneValueExpressionDriver.C
Making dependency list for source file FaceSetValueExpressionDriver.C
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file SampledSetValueExpressionDriver.C
could not open file mappedFvPatch.H for source file FieldValueExpressionDriver.C
could not open file mappedPointPatch.H for source file FieldValueExpressionDriver.C
could not open file mappedFvPatch.H for source file FieldValueExpressionLexer.ll
could not open file mappedPointPatch.H for source file FieldValueExpressionLexer.ll
Making dependency list for source file plugins/CommonPluginFunction.C
Making dependency list for source file plugins/FieldValuePluginFunction.C
Making dependency list for source file plugins/CellSetValuePluginFunction.C
Making dependency list for source file plugins/PatchValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file mappedFvPatch.H for source file PatchValueExpressionDriver.C
could not open file mappedPointPatch.H for source file PatchValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file plugins/CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll
Making dependency list for source file plugins/FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file SetSubsetValueExpressionDriver.C
Making dependency list for source file plugins/FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C
Making dependency list for source file plugins/SampledSetValuePluginFunction.C
Making dependency list for source file plugins/SampledSurfaceValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSetValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file plugins/FieldValuePluginFunction.C
could not open file mappedFvPatch.H for source file plugins/FieldValuePluginFunction.C
could not open file mappedPointPatch.H for source file plugins/FieldValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file plugins/PatchValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSetValuePluginFunction.C
Any hints how can I use groovyBC on foam extend 1.6 please.

Saideep
Saideep is offline   Reply With Quote

Old   October 31, 2016, 18:54
Default
  #11
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Saideep View Post
Hi everyone,

I guess this is the most appropriate location to post my problem after receiving no advice on my new thread few days back.

I am using foam-extend 1.6 and using a modified version of interFOAM solver (we tried the same solver even on FE-3.1 but the performance looks better in FE-1.6).

I would like to use groovyBC for my pressure boundary conditions as mentioned here. http://www.cfd-online.com/Forums/ope...her-field.html

I followed the webpage instruction to install swak4FOAM but I am stuck with the following problems.
Code:
Swak version is 0.2.4
Bison is version 3.0.4
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 1 Minor 6 Patch 1.6-ext
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file helpers/printSwakVersion.C
Making dependency list for source file repositories/SurfacesRepository.C
Making dependency list for source file repositories/GlobalVariablesRepository.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 namedEnums/MeshInterpolationOrder.C
Making dependency list for source file ExpressionDriverWriter.C
Making dependency list for source file namedEnums/NumericAccumulationNamedEnum.C
Making dependency list for source file ExpressionResult/StoredExpressionResult.C
Making dependency list for source file namedEnums/LogicalAccumulationNamedEnum.C
Making dependency list for source file ExpressionResult/StackExpressionResult.C
Making dependency list for source file ExpressionResult/ExpressionResult.C
Making dependency list for source file ExpressionResult/DelayedExpressionResult.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 FieldValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionParser.yy
Making dependency list for source file SubsetValueExpressionParser.yy
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
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C
Making dependency list for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
Making dependency list for source file SubsetValueExpressionLexer.ll
Making dependency list for source file SubsetValueExpressionDriver.C
Making dependency list for source file SetSubsetValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy
could not open file mappedFvPatch.H for source file FieldValueExpressionParser.yy
could not open file mappedPointPatch.H for source file FieldValueExpressionParser.yy
Making dependency list for source file CellSetValueExpressionDriver.C
Making dependency list for source file CellZoneValueExpressionDriver.C
Making dependency list for source file FaceSetValueExpressionDriver.C
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file SampledSetValueExpressionDriver.C
could not open file mappedFvPatch.H for source file FieldValueExpressionDriver.C
could not open file mappedPointPatch.H for source file FieldValueExpressionDriver.C
could not open file mappedFvPatch.H for source file FieldValueExpressionLexer.ll
could not open file mappedPointPatch.H for source file FieldValueExpressionLexer.ll
Making dependency list for source file plugins/CommonPluginFunction.C
Making dependency list for source file plugins/FieldValuePluginFunction.C
Making dependency list for source file plugins/CellSetValuePluginFunction.C
Making dependency list for source file plugins/PatchValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file mappedFvPatch.H for source file PatchValueExpressionDriver.C
could not open file mappedPointPatch.H for source file PatchValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file plugins/CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll
Making dependency list for source file plugins/FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file SetSubsetValueExpressionDriver.C
Making dependency list for source file plugins/FaceZoneValuePluginFunction.C
Any hints how can I use groovyBC on foam extend 1.6 please.

Saideep
Your log ends before it gets interesting (the "Could not open"-messages are not important)

Anyway: what could be problematic is your combination of new system and old Foam/swak-version: swak currently only supports bison 2.x (I use the latest of that branch). Bison 3.x has a subtle difference in its API that breaks swak4Foam. In newer swak-versions the Bison-version is tested for and a script that downloads and installs an appropriate bison-version is provided
__________________
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   November 1, 2016, 07:43
Thumbs up
  #12
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Thanks Gschaider,

That was because of the bison version as you pointed out.

Just had to add the following:
1. compileRequirements.sh file from latest swak release.

2. tell Allwmake to read the created file. (privateRequirements)
Code:
### added by me for compatability###
swakDir=$(pwd)
requirementsBin=$swakDir/privateRequirements/bin

if [ -e $requirementsBin ];
then
    echo
    echo "$requirementsBin existing. Prepending to PATH-variable (private version of Bison)"
    echo
    export PATH=$requirementsBin:$PATH
fi
###
Saideep
Saideep is offline   Reply With Quote

Old   November 24, 2020, 03:38
Default
  #13
Member
 
Eren
Join Date: Aug 2018
Posts: 86
Rep Power: 9
ErenC is on a distinguished road
Hello!

Code:
LFAvg : --> FOAM Warning : 
    From ConcretePluginFunction<DriverType>::exists
    in file lnInclude/ConcretePluginFunction.C at line 116
    Constructor table of plugin functions for CellZoneValueExpressionDriver is not initialized


--> FOAM FATAL ERROR: 
 Parser Error for driver CellZoneValueExpressionDriver at "1.1-12" :"field meltingSouce not existing or of wrong type"
"meltingSouce:alpha1"
 ^^^^^^^^^^^^
-|           

Context of the error:


- From dictionary: postDict.LFAvg
  Evaluating expression "meltingSouce:alpha1"
Swak4Foam is not finding the alpha1 that is generated by fvOptions but I have "meltingSource:alpha1" in 0 folder and in all the other timestep folders. I wonder why it doesn't work.

Edit: now I read the swak4foam document and I found it.

Re-edit: When we check error, swak4Foam founds problem in the meltingSource:alpha1, just before the ":" Because swak4Foam does not recognize ":" so we need to use aliases to make it work.

Last edited by ErenC; November 25, 2020 at 04:33.
ErenC is offline   Reply With Quote

Old   November 24, 2020, 07:51
Default
  #14
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ErenC View Post
Hello!

Code:
LFAvg : --> FOAM Warning : 
    From ConcretePluginFunction<DriverType>::exists
    in file lnInclude/ConcretePluginFunction.C at line 116
    Constructor table of plugin functions for CellZoneValueExpressionDriver is not initialized


--> FOAM FATAL ERROR: 
 Parser Error for driver CellZoneValueExpressionDriver at "1.1-12" :"field meltingSouce not existing or of wrong type"
"meltingSouce:alpha1"
 ^^^^^^^^^^^^
-|           

Context of the error:


- From dictionary: postDict.LFAvg
  Evaluating expression "meltingSouce:alpha1"
Swak4Foam is not finding the alpha1 that is generated by fvOptions but I have "meltingSource:alpha1" in 0 folder and in all the other timestep folders. I wonder why it doesn't work.

Edit: now I read the swak4foam document and I found it.

Thank you for solving the problem yourself. Nevertheless it would be nice for people who have the same problem to add a short hint like "aliases are the answer"
__________________
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   November 25, 2020, 04:30
Default
  #15
Member
 
Eren
Join Date: Aug 2018
Posts: 86
Rep Power: 9
ErenC is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Thank you for solving the problem yourself. Nevertheless it would be nice for people who have the same problem to add a short hint like "aliases are the answer"
Well, someone who is reading careful will find the answer in 3rd comment but you are right. I'll re-edit comment and I will be more contributive in future too. Thank you.
ErenC is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with massflow BC at inlet MrNavierStokes CFX 3 November 7, 2016 03:55
Massflow BC, natural frequency in pipi CFXMUFFIN CFX 2 February 1, 2016 16:54
Problem with plotting the Massflow in 2D-Axisymmetric Bando STAR-CCM+ 1 June 21, 2012 06:09
MassFlow Function? Absolute MassFlow? Failure in Caclulation eRzBeNgEl CFX 0 May 5, 2011 10:46
re: Massflow reset in CFX 10 Wooster CFX 5 March 16, 2007 21:08


All times are GMT -4. The time now is 23:45.