Git Product home page Git Product logo

Comments (14)

pablo-benito avatar pablo-benito commented on July 22, 2024 1

libSOWFAfiniteVolume.so: cannot open shared object file: No such file or directory libSOWFAincompressibleLESModels.so: cannot open shared object file: No such file or directory

Where are those libraries in your computer? OpenFoam needs to know the locations of those libraries..
If, assuming that those libraries are located inside a folder like this ${HOME}/SOWFA/applications/lib/${WM_OPTIONS}, then you must add this path to LD_LIBRARY_PATH env variable, before you launch your OpenFoam commands, like this:

export LD_LIBRARY_PATH=${SOWFA_DIR}/lib/${WM_OPTIONS}/:${LD_LIBRARY_PATH}

from sowfa.

pablo-benito avatar pablo-benito commented on July 22, 2024 1

But, you still have the error about not finding the libraries? If that's true, please check that the path that you plug into the LD_LIBRARY_PATH is the correct one.. Check that those libraries are actually there..

Also, you can safely remove the command 'of240' of those scripts. They are intended to load the correct openfoam inside NREL facilities. It's just to load the OpenFoam environment, exactly as the command source ${HOME}/OpenFOAM/OpenFoam-2.4.0/etc/bashrc

from sowfa.

ewquon avatar ewquon commented on July 22, 2024

from sowfa.

yulins avatar yulins commented on July 22, 2024

Many thanks @ewquon for your swift response, and you are absolutely right. The decomposePar didn't run correctly, as I changed the default 216 cores in the setup file into 4 (i.e. my personal computer), so the decomOrder didn't agree with that. So, I made it back to 216 cores and the decomposePar can now produce correct partitions (there are processor0-processor216 in the folder). Now the only modification that I made in the setup file are 'Number of cells' intending for a more coarse mesh.

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

// Domain size and number of cells.
xMin                 0.0;                         // Minimum x-extent of domain (m).
yMin                 0.0;                         // Minimum y-extent of domain (m).
zMin                 0.0;                         // Minimum z-extent of domain (m).
xMax                 3000.0;                      // Maximum x-extent of domain (m).
yMax                 3000.0;                      // Maximum y-extent of domain (m).
zMax                 1020.0;                      // Maximum z-extent of domain (m).
nx                   30;                         // Number of cells in x-direction.
ny                   30;                         // Number of cells in y-direction.
nz                   10;                         // Number of cells in z-direction.




// Number of cores and domain decomposition information.
nCores               216;                         // Number of cores on which to run this case.
decompType           simple;                      // Decomposition algorithm.  "simple" and "scotch" are good choices.
decompOrder          (6 6 6);                   // Order of the decomposition number of partitions in (x y z)-directions.




// Planar averaging and source term statistics options.
statisticsOn         true;                        // Gather planar-averaged flow statistics.
statisticsFrequency  5;                           // Frequency in time steps of statistics gathering.


However, I still can't make the solver work, and it seems from the command line that the solver doesn't start at all. Is it becasue I set the wrong core value?

$ sudo ./runscript.solve.1 
Purging and loading modules...
Nothing to unset...
Sourcing /home/yulin/OpenFOAM/OpenFOAM-2.4.x/etc/bashrc...
Purging and loading modules...
     *Unsetting OpenFOAM environment variables...
Sourcing /home/yulin/OpenFOAM/OpenFOAM-2.4.x/etc/bashrc...
cp: cannot stat 'system/controlDict.1': No such file or directory
Starting OpenFOAM job at:  Thu Feb 28 18:19:31 PST 2019
using  600  cores
Ending OpenFOAM job at:  Thu Feb 28 18:19:31 PST 2019

Thanks again.

from sowfa.

ewquon avatar ewquon commented on July 22, 2024

Looks like your runscript.solve.1 has something wrong in there. You probably still have cores=600 set; this should be the same as nCores in your setUp file.

The cp error is suspicious. This should be run from inside your case directory, i.e., the directory that contains your setUp file as well as the system, constant, and processor* subdirectories.

from sowfa.

yulins avatar yulins commented on July 22, 2024

Thanks again @ewquon for following this. Yes you are right, the cp error is a trouble, as the cd $PBS_O_WORKDIR didn't find the correct path in the 'runscript.slove.1' file. Another thing I figure out is that we should never use 'sudo' in compling SOWFA and its cases, as this will lead to many command permission troubles. Now it seems the ABLsolver is working, and I looking forward to see the results with paraView. Many thanks for your help.

from sowfa.

SH-Liao avatar SH-Liao commented on July 22, 2024

hello @yulins ,I'm facing the familiar problem.I just can't fine out where exactlly $PBS_O_WORKDIR leads .would you mind to tell me where it leads? when running 'runscript.slove.1',it apears to "cp system/contrilDirt.1 :no such file or directry".please help

from sowfa.

yulins avatar yulins commented on July 22, 2024

Hi @ShenghaiLiao Just simply comment this out with #cd $PBS_O_WORKDIR, and open terminal in the example case, it will find the path.

from sowfa.

SH-Liao avatar SH-Liao commented on July 22, 2024

hlleo @yulins ,thanks for your answer.I tried cd $PBS_O_WORKDIR ,but it simply returned to my home directry,when #echo $PBS_O_WORKDIR it comes out with nothing
by the way ,my foam is at $HOME/OpenFOAM/OpenFOAM-2.4.0,
and SOWFA is at $HOME/OpenFOAM/$USR-2.4.0

from sowfa.

yulins avatar yulins commented on July 22, 2024

Hi, I mean just comment it or delete it. The runscript.solve.1 should be excuted in the examplecase folder, such as' example.ABL.flatTerrain.neutral', than it will find 'system/controlDict.1'

from sowfa.

ewquon avatar ewquon commented on July 22, 2024

$PBS_O_WORKDIR is an environment variable from the Moab/Torque high-performance computing (HPC) environment. If you're directly running this script or using another HPC environment, then you should comment/delete that line as the previous commenter suggested.

from sowfa.

Cookiewyf avatar Cookiewyf commented on July 22, 2024

Hi ,everyone. I was trying to run example.ABL.flatTerrain.neutral. I modified runscript.preprocess:
image
image
and in the runscript.solve.1, I changed "source" and "cores":
image
In the setUp, I just modified ncores and decompOrde
image
Then I fellowed the step,./runscript.preprocess next ./runscript.solve.1
But it failed:

[3] --> FOAM FATAL IO ERROR:
[3] Unknown patchField type velocityABLWallFunction for patch type wall
....
...
[3]
[3]
[3] file: /home/ubuntu18/SOWFA/SOWFA_RUN/example.ABL.flatTerrain.neutral/processor3/0/U.boundaryField.lower from line 28 to line 31.
[3]
[3] From function fvPatchField::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
[3] in file /home/ubuntu18/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 143.
[3]
FOAM parallel run exiting
I felt confused cause I didnot changed anything about "U"
another question is these warning can be fixed?
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : libSOWFAfiniteVolume.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libSOWFAfiniteVolume.so"
--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : libSOWFAincompressibleLESModels.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libSOWFAincompressibleLESModels.so"
Create mesh for time = 0
setFieldsABL.md
ABLSolverlog.md
@ewquon @yulins @SH-Liao @pablo-benito
Thanks for your help!

from sowfa.

Cookiewyf avatar Cookiewyf commented on July 22, 2024

libSOWFAfiniteVolume.so: cannot open shared object file: No such file or directory libSOWFAincompressibleLESModels.so: cannot open shared object file: No such file or directory

Where are those libraries in your computer? OpenFoam needs to know the locations of those libraries.. If, assuming that those libraries are located inside a folder like this ${HOME}/SOWFA/applications/lib/${WM_OPTIONS}, then you must add this path to LD_LIBRARY_PATH env variable, before you launch your OpenFoam commands, like this:

export LD_LIBRARY_PATH=${SOWFA_DIR}/lib/${WM_OPTIONS}/:${LD_LIBRARY_PATH}

is that right?

ubuntu18@Ubuntu18:~/SOWFA/SOWFA_RUN/example.ABL.flatTerrain.stable$ export SOWFA_DIR="${HOME}/SOWFA" ubuntu18@Ubuntu18:~/SOWFA/SOWFA_RUN/example.ABL.flatTerrain.stable$ export LD_LIBRARY_PATH=${SOWFA_DIR}/lib/${WM_OPTIONS}/:${LD_LIBRARY_PATH} ubuntu18@Ubuntu18:~/SOWFA/SOWFA_RUN/example.ABL.flatTerrain.stable$ source ${HOME}/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc ubuntu18@Ubuntu18:~/SOWFA/SOWFA_RUN/example.ABL.flatTerrain.stable$ ./runscript.preprocess ./runscript.preprocess: line 82: of240: command not found -Renumbering the mesh with renumberMesh... -Decomposing the domain with decomposePar... -Checking the mesh with checkMesh...
I still have this warning, and the location is exactly right as you said.

Besides that, do you have any suggesstion about my error.
Thanks for your help!

from sowfa.

hy1112006 avatar hy1112006 commented on July 22, 2024

from sowfa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.