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

[OpenFOAM.com] Installing and running Swak4Foam on 1912 docker

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2020, 09:44
Default Installing and running Swak4Foam on 1912 docker
  #1
New Member
 
Hektor
Join Date: Feb 2020
Posts: 5
Rep Power: 3
hektorWartgard is on a distinguished road
Dear all,

I do not manage to get OF1912 to run together with the groovyBC boundary condition iusing the supplied the docker containers.



------------------------------------------------------------------



I am running the OF1912 docker on Windows 10. I would like to use the GroovyBC boundary conditions, so I downloaded the swak4FoamAndPyFoamDockerFile docker container from here.

I ran the installation script in the docker terminal, and launched it using the launch script. It launches with the following messages appearing:

Code:
$ ./startSwakPyFoam
./startSwakPyFoam: line 12: xhost: command not found
of_v1912_plus_swak
/usr/bin/id: cannot find name for user ID 1072466
 [I have no name!@3c7e170bd1c5 hewa]$
I can access my working directory and run the standard solvers, as well as using groovyBC. However I cannot use my custom apps and boundary conditions.


The solvers are simple to fix, I just copy my binary to the working folder, and run it from there. This seems however not to work with the BC's.
Code:
$ ls
 0  0_orig  VTK  clean  constant  dynamicCode  myBC.so  myIcoReactingMultiphaseInterFoam  system
$ ./myIcoReactingMultiphaseInterFoam
...
--> FOAM FATAL IO ERROR:
Unknown patchField type myBC for patch type patch
...
Furthermore I cannot compile the BC's as I do not have access to the $FOAM_USER_LIBBIN & $FOAM_USER_APPBIN. See for example when I run wmake on my solver:
Code:
[I have no name!@3c7e170bd1c5 myIcoReactingMultiphaseInterFoam]$ wmake
g++ -std=c++11 -m64 -DOPENFOAM=1912 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100 -I./phasesSystem/lnInclude -I./CompressibleMultiPhaseTurbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/fvOptions/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/transportModels/compressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/TurbulenceModels/compressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/transportModels/interfaceProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/thermophysicalModels/radiation/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/thermophysicalModels/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/thermophysicalModels/specie/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1912/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/myIcoReactingMultiphaseInterFoam.o -L/opt/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/lib \
    -lfiniteVolume -lfvOptions -lmeshTools -lsampling -lturbulenceModels -lcompressibleTurbulenceModels -lcompressibleTransportModels -lradiationModels -lfluidThermophysicalModels -lIncompressibleMultiphaseSystems -lCompressibleMultiPhaseTurbulenceModels -lmassTransferModels -lsolidThermo -lsolidSpecie -ltwoPhaseProperties -llaserDTRM -lOpenFOAM -ldl  \
     -lm -o /opt/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/bin/myIcoReactingMultiphaseInterFoam
/usr/bin/ld: cannot open output file /opt/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/bin/myIcoReactingMultiphaseInterFoam: Permission denied
collect2: error: ld returned 1 exit status
 make: *** [/opt/OpenFOAM/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/bin/myIcoReactingMultiphaseInterFoam] Error 1
Do you have any suggestions on how to run my custom solver, BC and GroovyBC together?

Some observations that may, or may not, be of relevance:
  • of_v1912_plus_swak
    • Runs in docker quick start terminal
    • user is "I have no name!"
    • $FOAM_USER_APPBIN was wrongly set to
      //OpenFoam/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/bin
      I corrected this to:
      /opt/OpenFoam/OpenFOAM-v1912/platforms/linux64GccDPInt32Opt/bin
  • of_v1912
    • Runs in powershell
    • user is ofuser
    • $FOAM_USER_APPBIN
    • $FOAM_APP_BIN is set to
      /home/ofuser/OpenFOAM/ofuser-v1912/platforms/linux64GccDPInt32Opt/bin
I don't quite grasp how the docker environments work, so I might have missed something very basic. Any help is appreciated!

Best regards
Hektor

Last edited by hektorWartgard; March 31, 2020 at 06:51.
hektorWartgard is offline   Reply With Quote

Old   April 2, 2020, 16:42
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 854
Rep Power: 9
HPE is on a distinguished road
Dont know the answer to your question, I'm afraid. Yet I want to take this chance to highlight the fact that most of the functionalities of swak4Foam has been implemented into OFv1912 by converting from swak4Foam:

New expressions syntax.
HPE is offline   Reply With Quote

Old   April 7, 2020, 03:35
Default
  #3
New Member
 
Hektor
Join Date: Feb 2020
Posts: 5
Rep Power: 3
hektorWartgard is on a distinguished road
That is interesting, thank you.
hektorWartgard is offline   Reply With Quote

Old   May 25, 2021, 13:00
Exclamation swak4foam could not be installed on the cluster
  #4
Senior Member
 
yangqi
Join Date: Mar 2019
Posts: 108
Rep Power: 4
qi.yang@polimi.it is on a distinguished road
Hi, could you please help me to see how to solve this issue since I tried many ways, really appreciated it.
Code:
/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory
make: *** No rule to make target `/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW'.  Stop.
/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory
/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory
/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++:5: /cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW: No such file or directory
make: *** No rule to make target `/cineca/prod/opt/applications/openfoam+/v1912/intelmpi--2018--binary/OpenFOAM-v1912+/wmake/rules/linux64Gcc/c++OptBDW'.  Stop.
wmake error: file 'Make/linux64IccDPInt32OptBDW/sourceFiles' could not be created in /galileo/home/userexternal/qyang001/OpenFOAM/qyang001-v1912/swak4Foam/Utilities/makeAxialMesh
In the user's lib, it includes already following src:
Code:
libEulerianInterfacialSedModels.so
libEulerianPpSedModels.so
libgranularRheologySedModel.so
libgroovyBC.so
libgroovyStandardBCs.so
libkineticTheorySedModel.so
libmyturbulenceModels.so
libsimpleCloudFunctionObjects.so
libsimpleFunctionObjects.so
libsimpleLagrangianFunctionObjects.so
libsimpleRegionSolvers.so
libsimpleSearchableSurfaces.so
libsimpleSwakFunctionObjects.so
libswak4FoamParsers.so
libswakChemistryModelFunctionPlugin.so
libswakCloudFunctionObjects.so
libswakCoalCloudAdaptor.so
libswakDynamicMeshFunctionPlugin.so
libswakDynamicMesh.so
libswakFacSchemesFunctionPlugin.so
libswakFiniteArea.so
libswakFunctionObjects.so
libswakFvcSchemesFunctionPlugin.so
libswakFvOptions.so
libswakGeneralLanguageIntegration.so
libswakLagrangianCloudSourcesFunctionPlugin.so
libswakLagrangianParser.so
libswakLocalCalculationsFunctionPlugin.so
libswakLuaIntegration.so
libswakMeshQualityFunctionPlugin.so
libswakMeshWaveFunctionPlugin.so
libswakMRFFunctionPlugin.so
libswakPython3Integration.so
libswakPythonIntegration.so
libswakQuantileFunctionPlugin.so
libswakRadiationModelFunctionPlugin.so
libswakRandomFunctionPlugin.so
libswakScriptableLagrangian.so
libswakShiftFieldFunctionPlugin.so
libswakSourceFields.so
libswakStateMachine.so
libswakSurfacesAndSetsFunctionPlugin.so
libswakThermoTurbFunctionPlugin.so
libswakTopoSources.so
libswakTransportTurbFunctionPlugin.so
libswakVelocityFunctionPlugin.so
libtwoPhaseModel.so
libtwoPhaseTurbulenceModels.so
qi.yang@polimi.it is offline   Reply With Quote

Reply

Tags
docker, installataion, openfoam1912, swak4foam

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
[Other] Basic questions about OpenFOAM cluster running and installing Fauster OpenFOAM Installation 0 May 25, 2018 15:00
[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04 JFM OpenFOAM Community Contributions 1 October 30, 2016 09:43
[swak4Foam] Installing swak4Foam on ubuntu 12.04 fluidflowsteel OpenFOAM Community Contributions 1 June 28, 2016 14:02
[swak4Foam] foam-extend-3.2 installing problem: swak4Foam failed to install due to Bison lxwd OpenFOAM Community Contributions 1 March 20, 2016 16:03
[swak4Foam] Error installing swak4Foam 0.2.3 on OF 2.2.2 Mojtaba.a OpenFOAM Community Contributions 2 December 7, 2013 03:32


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