solids4foam / solids4foam.github.io

solids4foam official website source files
http://solids4foam.github.io
MIT License
5 stars 13 forks source link

Sourcing bashrc in docker-foam-extend-4.1 #45

Open alishayegh opened 1 year ago

alishayegh commented 1 year ago

To use the container solids4foam/solids4foam-v2.0-foam-extend-4.1 one needs to source bashrc before cd $WM_PROJECT_DIR/../solids4foam/tutorials. Also there are two problems when it comes to using this container:

1- As the root user, you get the following error when you run blockMesh for the cavity case:

--> FOAM FATAL IO ERROR: 
This code should not be executed by someone with administrator rights due to security reasons.
(it writes a shared library which then gets loaded using dlopen)

2- As the dockeruser, the error changes to

--> FOAM FATAL IO ERROR: 
Loading a shared library using case-supplied code is not enabled by default
because of security issues. If you trust the code you can enable this
facility be adding to the InfoSwitches setting in the system controlDict:

    allowSystemOperations 1

The system controlDict is either

    ~/.OpenFOAM/$WM_PROJECT_VERSION/controlDict

or

    $WM_PROJECT_DIR/etc/controlDict