Skip to content

Problem when installing oasis #54

@Lauuragn

Description

@Lauuragn

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions