Menu

#247 installing

new
None
high
major
HaveNotTried
tweak
ubuntu 16.0.4
ubuntu 16.0.4
other
2019-08-28
2019-08-28
No

I have tried to install swak4Foam for openfoam 5 on ubuntu 16.0.4,but i got this error message in the makelog

can you help with installing it ?


Previously compiled for OpenFOAM (5.0)

/data/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Using python2.7 at /usr/bin/python2.7-config for python2
Using python3.5 at /usr/bin/python3.5-config for python3
Using our own Lua at /data/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 0.4.3
hg: parse error at /home/zels496/.hgrc:1: ui]
Could not get version of the sources
Bison: /data/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /data/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 5 Minor 0 Patch 0 (-1 == x / 0) Fork: org
No change to swak4FoamParsers/foamVersion4swak.H

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem

wmake libso swak4FoamParsers
wmake libso swakLagrangianParser
wmake libso groovyBC
wmake libso swakFunctionObjects
wmake libso simpleFunctionObjects
wmake libso simpleLagrangianFunctionObjects
wmake libso simpleSearchableSurfaces
wmake libso simpleSwakFunctionObjects
wmake libso swakTopoSources
wmake libso swakDynamicMesh
wmake libso swakSourceFields
Compiling swakFvOptions
wmake libso swakFvOptions
wmake libso swakStateMachine
wmake libso groovyStandardBCs
Reading variables from 'swakConfiguration'
Using python2.7 at /usr/bin/python2.7-config for python2
Using python3.5 at /usr/bin/python3.5-config for python3
Using our own Lua at /data/swak4Foam/privateRequirements
wmake libso swakGeneralLanguageIntegration
wmake libso swakPythonIntegration
wmake libso swakPython3Integration
wmake libso swakLuaIntegration
wmake libso swakScriptableLagrangian
wmake libso swakChemistryModelFunctionPlugin
wmake libso swakDynamicMeshFunctionPlugin
wmake libso swakFvcSchemesFunctionPlugin
wmake libso swakLagrangianCloudSourcesFunctionPlugin
wmake libso swakLocalCalculationsFunctionPlugin
wmake libso swakMeshQualityFunctionPlugin
wmake libso swakMeshWaveFunctionPlugin
wmake libso swakMRFFunctionPlugin
wmake libso swakQuantileFunctionPlugin
wmake libso swakRadiationModelFunctionPlugin
wmake libso swakRandomFunctionPlugin
wmake libso swakShiftFieldFunctionPlugin
wmake libso swakSurfacesAndSetsFunctionPlugin
wmake libso swakThermoTurbFunctionPlugin
wmake libso swakTransportTurbFunctionPlugin
wmake libso swakVelocityFunctionPlugin
wmake libso coalCloudAdaptor

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

wmake libso simpleCloudFunctionObjects
wmake libso swakCloudFunctionObjects
wmake calcNonUniformOffsetsForMapped
wmake fieldReport
wmake funkyPythonPostproc
wmake funkyDoCalc
wmake funkySetAreaFields
wmake funkySetBoundaryField
wmake funkySetFields
wmake funkySetLagrangianField
wmake funkyWarpMesh
wmake replayTransientBC
wmake writeBoundarySubfields

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

Discussion

  • Bernhard Gschaider

    Have you tried running funkySetFieldsor one of the examples? Because the output looks perfectly OK to me. Except for

    hg: parse error at /home/zels496/.hgrc:1: ui]
    

    but that is a problem in the line 1 of that configuration file (not swak4Foams problem)

     
  • zein elserfy

    zein elserfy - 2019-08-28

    I have added part to my controlDict file for calculating u^3


     cubeUx 
    {
        type expressionField;
        dimension [0 3 -3 0 0 0 0];
        fieldName "cubeUx";
        expression "pow(U.x,3)";
        verbose true;
        autowrite false;
                writeControl    timeStep;
    }
    

    a folder called swak4Foam but it only contain one 
    file called global_variables and it is empty file
    
    /*--------------------------------*- C++ -*---------------------*\
    

    | ========= | |
    | \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
    | \ / O peration | Version: 5.x |
    | \ / A nd | Web: www.OpenFOAM.org |
    | \/ M anipulation | |
    *---------------------------------------------------------------------------/
    FoamFile
    {
    version 2.0;
    format ascii;
    class GlobalVariablesRepository;
    location "10121/swak4Foam";
    object global_variables;
    }
    // *
    * * * * * * * * * * * * * * * * * * * //

    0
    (
    )

    // ************* //

     

    Last edit: zein elserfy 2019-08-28

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.