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

[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2016, 01:03
Unhappy Installing swak4Foam 0.4.0 on ubuntu 14.04
  #1
JFM
Member
 
JFM's Avatar
 
John Anonymous
Join Date: Jan 2011
Location: Melbourne Australia
Posts: 37
Rep Power: 15
JFM is on a distinguished road
Send a message via Skype™ to JFM
I been trying for several weeks to install swak4foam with OpenFOAM 3.0.1 on a fresh install of Ubuntu 14.04. OpenFOAM was installed as a root (located at /opt/openfoam30/.

swak4foam was downloaded and compiled using the instructions at https://openfoamwiki.net/index.php/I...14.04_to_15.10.

The log.make file seems to show that swak4foam was installed properly ->
Code:
Previously compiled for OpenFOAM 3.0.1

/home/jfm/OpenFOAM/jfm-3.0.1/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
swakConfiguration: line 13: [: : integer expression expected
Checking swak4Foam-version and generating file
Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 3 Minor 0 Patch 1 (-1 == x / 1)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswak4FoamParsers.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakLagrangianParser.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libgroovyBC.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakFunctionObjects.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakTopoSources.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakSourceFields.so' is up to date.
Compiling swakFvOptions
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakFvOptions.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libgroovyStandardBCs.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakPythonIntegration.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakMeshWaveFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib/libswakCoalCloudAdaptor.so' is up to date.

If you have your own function-plugins you can specify them using the SWAK_USER_PLUGINS environment variable and they would be compiled now. If you don't know what this means: don't bother. You propably don't need it

make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/funkyDoCalc' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/funkyPythonPostproc' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/fieldReport' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/funkySetBoundaryField' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/funkySetFields' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/funkyWarpMesh' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/funkySetLagrangianField' is up to date.
make[1]: `/home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/bin/replayTransientBC' is up to date.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/jfm/OpenFOAM/jfm-3.0.1/swak4Foam/Libraries (most people will be fine without setting that variable)
I have checked the location of the isntall using ->
Code:
cd $FOAM_USER_LIBBIN
and the following is listed ->
Code:
-rwxrwxr-x 1 jfm jfm 1474934 Jun 19 14:08 libgroovyBC.so
-rwxrwxr-x 1 jfm jfm  998341 Jun 19 14:10 libgroovyStandardBCs.so
-rwxrwxr-x 1 jfm jfm 3097270 Jun 19 14:09 libsimpleFunctionObjects.so
-rwxrwxr-x 1 jfm jfm 1895587 Jun 19 14:09 libsimpleLagrangianFunctionObjects.so
-rwxrwxr-x 1 jfm jfm  428173 Jun 19 14:09 libsimpleSearchableSurfaces.so
-rwxrwxr-x 1 jfm jfm  937940 Jun 19 14:09 libsimpleSwakFunctionObjects.so
-rwxrwxr-x 1 jfm jfm 7655809 Jun 19 14:07 libswak4FoamParsers.so
-rwxrwxr-x 1 jfm jfm  256596 Jun 19 14:10 libswakChemistryModelFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  456146 Jun 19 14:15 libswakCoalCloudAdaptor.so
-rwxrwxr-x 1 jfm jfm 2002281 Jun 19 14:08 libswakFunctionObjects.so
-rwxrwxr-x 1 jfm jfm 1900109 Jun 19 14:10 libswakFvcSchemesFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  815907 Jun 19 14:10 libswakFvOptions.so
-rwxrwxr-x 1 jfm jfm  448910 Jun 19 14:10 libswakLagrangianCloudSourcesFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm 2265629 Jun 19 14:15 libswakLagrangianParser.so
-rwxrwxr-x 1 jfm jfm  223923 Jun 19 14:11 libswakLocalCalculationsFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  286488 Jun 19 14:11 libswakMeshQualityFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  436236 Jun 19 14:11 libswakMeshWaveFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm 3145301 Jun 19 14:15 libswakPythonIntegration.so
-rwxrwxr-x 1 jfm jfm  217950 Jun 19 14:11 libswakRadiationModelFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  161665 Jun 19 14:11 libswakRandomFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm 1124307 Jun 19 14:10 libswakSourceFields.so
-rwxrwxr-x 1 jfm jfm 1234853 Jun 19 14:11 libswakSurfacesAndSetsFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  508403 Jun 19 14:12 libswakThermoTurbFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  107137 Jun 19 14:09 libswakTopoSources.so
-rwxrwxr-x 1 jfm jfm  292095 Jun 19 14:12 libswakTransportTurbFunctionPlugin.so
-rwxrwxr-x 1 jfm jfm  248955 Jun 19 14:12 libswakVelocityFunctionPlugin.so
Running the suggested funkySetFields generates the following
Code:
jfm@desktop:~/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib$ funkySetFields
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 3.0.1-119cac7e8750
Exec   : funkySetFields
Date   : Jun 19 2016
Time   : 14:35:35
Host   : "desktop"
PID    : 31078
Case   : /home/jfm/OpenFOAM/jfm-3.0.1/platforms/linux64GccDPInt32Opt/lib
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
swakVersion: 0.4.0 (Release date: Next release)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


--> FOAM FATAL ERROR: 
funkySetFields: time/latestTime option is required


    From function main()
    in file funkySetFields.C at line 723.

FOAM exiting
However when i attempt to run the fillingTheDam example included with swak4foam the states ->
Code:
jfm@desktop:~/OpenFOAM/jfm-3.0.1/swak4Foam/Examples/groovyBC/fillingTheDam$ interFoam
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 3.0.1-119cac7e8750
Exec   : interFoam
Date   : Jun 19 2016
Time   : 14:24:54
Host   : "desktop"
PID    : 30422
Case   : /home/jfm/OpenFOAM/jfm-3.0.1/swak4Foam/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: no residual control data found. Calculations will employ 3 corrector loops

Reading field p_rgh



--> FOAM FATAL IO ERROR: 
Unknown patchField type buoyantPressure for patch type wall
Would appreciate any suggestions
Regards JFM
JFM is offline   Reply With Quote

Old   October 30, 2016, 09:43
Default
  #2
New Member
 
Gianluca
Join Date: Sep 2011
Location: Firenze, Italy
Posts: 11
Rep Power: 14
ninoleum is on a distinguished road
Hi John,
probably you already solved but in case you are still stuck here is what I think:
in OF3.0 buoyantPressure BC type is called fixedFluxPressure.

Hope this solves your problem.

Gianluca
ninoleum is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] error installing OF4.1 on ubuntu 14.04 dupeng OpenFOAM Installation 9 October 15, 2018 02:46
[swak4Foam] Installing swak4Foam on ubuntu 12.04 fluidflowsteel OpenFOAM Community Contributions 1 June 28, 2016 14:02
[OpenFOAM.org] Installing OpenFOAM 2.3.x on Ubuntu 14.04 samiam1000 OpenFOAM Installation 4 January 26, 2015 02:44
Problem installing OpenFOAM-1.6-ext on Ubuntu 14.04 afrotimy OpenFOAM Installation 4 October 4, 2014 11:36
Installing 2.3.0 on Ubuntu 14.04 LTS siw OpenFOAM Installation 6 July 5, 2014 06:16


All times are GMT -4. The time now is 01:05.