Coder Social home page Coder Social logo

Comments (6)

leonardocarreras avatar leonardocarreras commented on August 17, 2024

Hi @morje-datta, welcome to DPSim! As far as our knowledge goes, Fedora 36 is fully supported and our CI is actually using that specific version to build and test.

We would be keen to help, but we need more information. If you are a beginner with DPSim, one good starting point is to try to compile using the docker image that already includes all the things you need to succeed. That being said, if you are trying to compile natively then you need to self-support yourself a bit, you may want to ensure you have all the required dependencies installed. You can figure that out from the docker container and/or the scripts.

Another point to take in account, is that usually it is a little easier to compile using gcc than clang, some library support is better. That does not seems to be your choice from the screenshot provided. In the documentation steps we are using gcc.

Additionally, two more things to try: 1) run cmake from the terminal as it is described in the documentation, and include the target (for this case --target WSCC-9bus_CIM ) and 2) run the file generated in the build folder using the terminal for example ./build/dpsim/examples/cxx/WSCC-9bus_CIM (and not via Visual Studio Code). Configuring cmake in VSC can be a tricky task.

If you need more support, feel free to provide more details here. Another option is to join the slack channel #sogno-dpsim (as described in the repo) and ask there.

from dpsim.

morje-datta avatar morje-datta commented on August 17, 2024

Hie @leonardocarreras above reply was help to me. Library was build using docker image. I have run the command(./build/dpsim/examples/cxx/WSCC-9bus_CIM) from terminal it got run and shown the output.

when i made changes to the WSCC-9bus_CIM.cpp file(change finalTime =0.1=>finalTime =1) and try to build it give me following error

/usr/bin/ld: cannot find -lGSL_LIBRARY-NOTFOUND
/usr/bin/ld: cannot find -lGSL_CBLAS_LIBRARY-NOTFOUND
collect2: error: ld returned 1 exit status

Screenshot from 2024-07-04 12-32-47

from dpsim.

leonardocarreras avatar leonardocarreras commented on August 17, 2024

Hi, I cannot reproduce the error, would you mind to maybe start again from scratch?
image
The output for me is
image

For the time/timestep, actually there is a small error in the code, you need to change

simPF.setTimeStep(finalTime);
simPF.setFinalTime(2 * finalTime);

for
image

from dpsim.

morje-datta avatar morje-datta commented on August 17, 2024

I have deleted the all file and started from scratch. It work for me. Right now i am trying with python binding getting following error while running the program.
I have build dpsimpy and dpsimpyvillas same as mentioned in documentation but getting error mentioned in screenshot

Screenshot from 2024-07-11 11-39-12

from dpsim.

leonardocarreras avatar leonardocarreras commented on August 17, 2024

Hi, I think it will surely have something to do with the way you setup your VScode. Remember you need to connect to the kernel inside the docker container, not into some other part.
So, after you build, you need to start the jupyter server in the container.

cd /dpsim/build
export PYTHONPATH=$(pwd):$(pwd)/../python/src/
cd /dpsim
jupyter lab --ip="0.0.0.0" --allow-root --no-browser

After this, you select Select another kernel -> Existing Jupyter Server
There you enter the url to the machine (address/port) and the password is the token you see in the log of the server in the docker container
image

Finally, all should work
image

from dpsim.

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.