Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when installing oasis #54

Open
Lauuragn opened this issue Jan 19, 2024 · 0 comments
Open

Problem when installing oasis #54

Lauuragn opened this issue Jan 19, 2024 · 0 comments

Comments

@Lauuragn
Copy link

Hello everyone!

I'm trying to install oasis in linux using Anaconda:

(fenicsx-env) [ana@ohpc Oasis]$ cd /gpfs/home/dyang/anaconda3/envs/fenicsx-env/bin/lib/python3.12/site-packages/oasis-2018.1-py3.12.egg/oasis/
(fenicsx-env) [ana@ohpc oasis]$ python NSfracStep.py problem=DrivenCavity solver=IPCS_ABCN
Traceback (most recent call last):
File "/gpfs/home/ana/anaconda3/envs/fenicsx-env/bin/lib/python3.12/site-packages/oasis-2018.1-py3.12.egg/oasis/NSfracStep.py", line 36, in
from oasis.common import *
ModuleNotFoundError: No module named 'oasis'

However, it cannot find the module named 'oasis', may be it's because inside the oasis folder there's not a file called oasis.py?
I'm struggling with the instalation if someone could help me.
The steps I'm following are:

  1. I install fenics from this link: https://fenicsproject.org/download/
    conda create -n fenicsx-env
    conda activate fenicsx-env
    conda install -c conda-forge fenics-dolfinx mpich pyvista

  2. Then I run

python setup.py install -- prefix = 'the path where i want Oasis installed'

  1. Once it is supposed to be installed I tried to run as a test

The main modules NSfracStep.py and NSCoupled.py are executable and requires only that
the problem to be solved is added after the keyword problem, e.g.,
$ python NSfracStep.py problem=DrivenCavity solver=IPCS_ABCN
$ python NSCoupled.py problem=DrivenCavity element=TaylorHood
or the preferred way through Ipython
[ 1 ] run NSfracStep problem=DrivenCavity
[ 1 ] run NSCoupled problem=DrivenCavity element=TaylorHood

But, I get an error because it cannot find the "oasis" module

Thank you for your attention and your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant