CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Error installing swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/113239-error-installing-swak4foam.html)

gschaider October 1, 2013 14:52

Quote:

Originally Posted by fernando_fec (Post 454539)
I have the same problem, or similar at least, and I'm using bison 3.0 (the only one available in the repos of ArchLinux) The full error log is attached in the .zip

Bison 3.0 is rather new (this July) and seems to justify its jump in version number with massive changes.

I only did one exploratory compilation with it which seems to show that there will be critically changes to the grammar required. I'm not even sure whether it will be possible to support 2.x and 3.x with the same source files. Due to time constraints and as I didn't expect any Linux-distributions that are used for work to incorporate this yet (as a change of bison might break lots of things) I didn't follow up yet.

For the time being I recommend using bison 2.x. I will eventually have a look at compiling swak with bison 3.0 but as long as the majority of the enterprise Linuxes has bison 2.x it will be an absolute priority to support it.

Of course if someone finds a way to compile swak with bison 3.x I will gladly accept the patches (IF THEY DON'T BREAK COMPILATION WITH BISON 2.x)

fernando_fec October 1, 2013 15:12

Well, thanks for the heads up, I'll then compile bison 2.7 and use it. Also, maybe it would be a good idea to include this in the readme, I understand bison 3.0 may not be that widely used, but been there doesn't hurt anybody :)

Thanks for you time

m5m5kh October 2, 2013 07:57

1 Attachment(s)
I use OF 2.2.0
I install flex and bison but I have problems with swak4foam itself
this is the error
what should I do?
any help would be appreciated

br
Mohsen

wyldckat October 2, 2013 08:08

Quote:

Originally Posted by m5m5kh (Post 454653)
I use OF 2.2.0
I install flex and bison but I have problems with swak4foam itself
this is the error
what should I do?
any help would be appreciated

Quick answer: you got the ZIP file from my Github repository. Therefore, the file permissions are broken. Try:
Code:

chmod -R +x All* *.py

m5m5kh October 2, 2013 08:14

ok Bruno
I will do as you said

m5m5kh October 2, 2013 08:27

Quote:

Originally Posted by wyldckat (Post 454657)
Quick answer: you got the ZIP file from my Github repository. Therefore, the file permissions are broken. Try:
Code:

chmod -R +x All* *.py

It said " there is no such file or directory" :(

wyldckat October 2, 2013 08:35

Try:
Code:

(find . -name "All*" | find . -name "*.py") | xargs chmod +x

m5m5kh October 2, 2013 08:53

Quote:

Originally Posted by wyldckat (Post 454667)
Try:
Code:

(find . -name "All*" | find . -name "*.py") | xargs chmod +x

nothing!!! :(
must I do some changes in swakconfig.debian file and swakconfig.example file Bruno?
I get confused :(

wyldckat October 2, 2013 09:09

@Mohsen: Please describe in detail how exactly you have downloaded, unpacked and tried to build swak4Foam.

m5m5kh October 2, 2013 10:26

Quote:

Originally Posted by wyldckat (Post 454684)
@Mohsen: Please describe in detail how exactly you have downloaded, unpacked and tried to build swak4Foam.

Ok!
I checked whether I have flex on my system,the answer is yes
then I used " sudo bash ./configure" because the "permission error" occurred.
then " sudo wmake"
and bison 2.7 is installed
then I extract your file on my system and use " sudo ./Allwmake" and an error occurred which was shown in the last reply thread of mine :(

wyldckat October 2, 2013 10:52

Quote:

Originally Posted by m5m5kh (Post 454704)
Ok!
I checked whether I have flex on my system,the answer is yes
then I used " sudo bash ./configure" because the "permission error" occurred.
then " sudo wmake"
and bison 2.7 is installed
then I extract your file on my system and use " sudo ./Allwmake" and an error occurred which was shown in the last reply thread of mine :(

That explains it. The files have been tampered by the root account, making it impossible to use in the normal account.
  1. Remove the folder "swak4foam-OF22X" with the sudo command:
    Code:

    sudo rm -r swak4foam-OF22X
  2. Download and unzip the original package as normal user:
    Code:

    wget https://github.com/wyldckat/swak4foam/archive/master.zip
    unzip master

  3. Build it as normal user:
    Code:

    cd swak4foam-OF22X
    ./Allwmake


m5m5kh October 2, 2013 13:09

Quote:

Originally Posted by wyldckat (Post 454710)
That explains it. The files have been tampered by the root account, making it impossible to use in the normal account.
  1. Remove the folder "swak4foam-OF22X" with the sudo command:
    Code:

    sudo rm -r swak4foam-OF22X
  2. Download and unzip the original package as normal user:
    Code:

    wget https://github.com/wyldckat/swak4foam/archive/master.zip
    unzip master

  3. Build it as normal user:
    Code:

    cd swak4foam-OF22X
    ./Allwmake


Hi Bruno
OK! thanks for your hints,I will follow your steps.

m5m5kh October 2, 2013 14:41

2 Attachment(s)
Hi dear Bruno
I think it is done!
you are awesome ;)
It takes too long to compile the code( about 10 mins)
I use a second ./Allwmake and attached the result in the following file
but when I used groovy bc as a type of bcs OpenFOAM cant find it
please see the error

best regards
Mohsen

m5m5kh October 3, 2013 04:07

Quote:

Originally Posted by m5m5kh (Post 454746)
Hi dear Bruno
I think it is done!
you are awesome ;)
It takes too long to compile the code( about 10 mins)
I use a second ./Allwmake and attached the result in the following file
but when I used groovy bc as a type of bcs OpenFOAM cant find it
please see the error

best regards
Mohsen

Sorry
I forgot to add this lines to controldict :)
it is OK now



libs (
"libOpenFOAM.so"
"libgroovyBC.so"

"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
) ;


thanks again Bruno

gschaider October 3, 2013 06:18

Quote:

Originally Posted by m5m5kh (Post 454746)
Hi dear Bruno
I think it is done!
you are awesome ;)

I agree
Quote:

Originally Posted by m5m5kh (Post 454746)
It takes too long to compile the code( about 10 mins)

I disagree. Compiling swak can take muuuuch longer with the wrong compiler and full optimization ;)

m5m5kh October 3, 2013 07:46

Quote:

Originally Posted by gschaider (Post 454841)
I agree

I disagree. Compiling swak can take muuuuch longer with the wrong compiler and full optimization ;)

Yes Bernhard.thanks for your great works.
I under-estimate the time, ;) sure.It takes much longer :)

wyldckat October 5, 2013 02:08

Greetings to all!

I've updated the instructions on the "Building" section: http://openfoamwiki.net/index.php/Co...4Foam#Building
The "tip" indicates how you can build swak4Foam with multi-core capabilities, therefore reducing the time needed to build it.
Note: It does not affect how it will operate afterwords, it only affects the building process.

Best regards,
Bruno

fg118 December 2, 2013 10:00

Error installing swak4Foam
 
Hi all,
When I install swak4foam, there are some errors in it. Can somebody help me to sort it out? The log file for second ./Allwmake is below.

./Allwmake
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Swak version is 0.2.4
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 1 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
SOURCE=manipulateFieldFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -I/opt/openfoam221/src/sampling/lnInclude -I/opt/openfoam221/src/fileFormats/lnInclude -I/opt/openfoam221/src/triSurface/lnInclude -I/opt/openfoam221/src//postProcessing/functionObjects/utilities/lnInclude -I/opt/openfoam221/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/manipulateFieldFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from manipulateFieldFunctionObject.H:50,
from manipulateFieldFunctionObject.C:37:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::manipulateField]’:
manipulateFieldFunctionObject.C:51:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::manipulateField’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/manipulateFieldFunctionObject.o] Error 1
SOURCE=misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -I/opt/openfoam221/src/sampling/lnInclude -I/opt/openfoam221/src/triSurface/lnInclude -I/opt/openfoam221/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam221/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam221/src/regionModels/regionModel/lnInclude -I/opt/openfoam221/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam221/src/turbulenceModels -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.H:50,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:36:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::readAndUpdateFields]’:
misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:50:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::readAndUpdateFields’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o] Error 1
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/calcNonUniformOffsetsForMapped'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/calcNonUniformOffsetsForMapped'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkyDoCalc'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkyDoCalc'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetBoundaryField'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetFields'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetFields'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/replayTransientBC'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/fg312/OpenFOAM/swak4foam-master/Libraries (most people will be fine without setting that variable)


If I ignore those, when I use funkySetField with expression
"pos().y <= 0.005*cos(pi*(pos().x+0.05)/0.1) ? 1 : 0";
to define my water free surface, it is fine; but with expression
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))";
there are fatal error.

--> FOAM FATAL ERROR:
Parser Error for driver FieldValueExpressionDriver at "1.28" :"field � not existing or of wrong type"
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"
^
-----------------------------|

Context of the error:


- Driver constructed from scratch
Evaluating expression "average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"


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

FOAM exiting

gschaider December 2, 2013 17:19

Quote:

Originally Posted by fg118 (Post 464409)
Hi all,
When I install swak4foam, there are some errors in it. Can somebody help me to sort it out? The log file for second ./Allwmake is below.

$SOURCE -o Make/linux64GccDPOpt/manipulateFieldFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from manipulateFieldFunctionObject.H:50,
from manipulateFieldFunctionObject.C:37:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::manipulateField]’:
manipulateFieldFunctionObject.C:51:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::manipulateField’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/manipulateFieldFunctionObject.o] Error 1
SOURCE=misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -I/opt/openfoam221/src/sampling/lnInclude -I/opt/openfoam221/src/triSurface/lnInclude -I/opt/openfoam221/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam221/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam221/src/regionModels/regionModel/lnInclude -I/opt/openfoam221/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam221/src/turbulenceModels -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.H:50,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:36:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::readAndUpdateFields]’:
misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:50:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::readAndUpdateFields’ has no member named ‘timeSet’

This was caused by a change in the interface of functionObjects (in OpenFOAM).
This was fixed some time ago in the development-version (of swak) but not yet in the released version (will come with the next release). Until then you'll have to pull the development version and compile that

Quote:

Originally Posted by fg118 (Post 464409)
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/fg312/OpenFOAM/swak4foam-master/Libraries (most people will be fine without setting that variable)


If I ignore those, when I use funkySetField with expression
"pos().y <= 0.005*cos(pi*(pos().x+0.05)/0.1) ? 1 : 0";
to define my water free surface, it is fine; but with expression
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))";
there are fatal error.

--> FOAM FATAL ERROR:
Parser Error for driver FieldValueExpressionDriver at "1.28" :"field � not existing or of wrong type"
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"
^
-----------------------------|

Context of the error:


- Driver constructed from scratch
Evaluating expression "average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"


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

FOAM exiting

It's hard to say where the ^ is pointing too. Please use the CODE-tag for output. That (amongst other things) uses a fixed-width font and that makes the terminal-output useful.

The � in your output: does it really look like this?

My suspicion is that there is a character in the expression-string that the Lexer can not interpret. I see that you use whitespaces in your expression-string. That should be OK, but could you remove the spaces and try it again?

fg118 December 3, 2013 06:47

Quote:

Originally Posted by gschaider (Post 464488)
This was caused by a change in the interface of functionObjects (in OpenFOAM).
This was fixed some time ago in the development-version (of swak) but not yet in the released version (will come with the next release). Until then you'll have to pull the development version and compile that


It's hard to say where the ^ is pointing too. Please use the CODE-tag for output. That (amongst other things) uses a fixed-width font and that makes the terminal-output useful.

The � in your output: does it really look like this?

My suspicion is that there is a character in the expression-string that the Lexer can not interpret. I see that you use whitespaces in your expression-string. That should be OK, but could you remove the spaces and try it again?

Dear Bernhard,

Thank you very much for you reply.
I will try to download the development version and compile it later.

For the second question, once I remove the whitespaces in the expression-string, the different error appeared (see below).

Create mesh for time = 0

Time = 0
Using funkySetFieldsDict

Part: setLower
Modifying field alpha1 of type volScalarField

Putting "average(fpos().y<surf(0.)?surf(1.0):surf(0.)) " into field alpha1 at t = "0" if condition "true" is true
Keeping patches unaltered

--> FOAM FATAL ERROR:
inconsistent types: alpha1 is volScalarField while the expression evaluates to a surfaceScalarField

From function doAnExpression()
in file funkySetFields.C at line 359.

FOAM exiting


All times are GMT -4. The time now is 20:27.