Code Monkey home page Code Monkey logo

Comments (9)

marijanbeg avatar marijanbeg commented on September 23, 2024

Hi @yuxuanbc, where did you find that notebook? It is outdated.

It should be system.table.data['mx']

from workshop.

WYX-phys avatar WYX-phys commented on September 23, 2024

Oh, Thank you so much, I probably find it on the old oommfc web site several month ago,and forget to check it again. Thank you again for your kind help!

from workshop.

marijanbeg avatar marijanbeg commented on September 23, 2024

Sure, please make sure everything is updated.

from workshop.

WYX-phys avatar WYX-phys commented on September 23, 2024

Sorry, but it's so nice for getting help here.
Another question I have is this.
Is there a good way to do the Discretisedfield .ovf output for each step when I run the Timedriver?
Do I need to define many new drivers only for each step, and then output?
what I want to is to show the FMR mode at certain frequency.
Thank you so much!

from workshop.

marijanbeg avatar marijanbeg commented on September 23, 2024

Hi @yuxuanbc, when you call the time driver, you pass the number of steps you want saved:

td = oc.TimeDriver()
td.drive(system, t=0.5e-9, n=2000)  # t is the simulation time and n is the number of steps

Does this answer you question?

from workshop.

WYX-phys avatar WYX-phys commented on September 23, 2024

Thank you for your answer!
what I mean is that I hope to get the magnetizations for each cell at each time. Then I can rearrange the date and do time FFT for each cell.
Just like you mentioned in the code. If I don't understand it wrong, the system will drive 0.5ns with 2000 step. But I can only get 2000 averaged magnetization (in y direction for example ). Is there any way I can get 2000 .ovf file to show the magnetization for every cell inside the mesh?

Thank you so much!

from workshop.

marijanbeg avatar marijanbeg commented on September 23, 2024

TimeDriver actually saves 2000 files as you want. In the same directory where you run your notebook a directory with the same name as the name you give to your system will be created. Inside, you can find the drive (probably the last one), which is going to have 2000 OMF files.

There is micromagneticdata package I am going to show in the last session, which makes the analysis of that kind easy.

I will close this issue now. Please raise a new issue for any new question. This way we make sure other participants can see the answers if they have the same question. :)

from workshop.

WYX-phys avatar WYX-phys commented on September 23, 2024

Thank you again. Will do if I have other questions! Sorry about that!

from workshop.

marijanbeg avatar marijanbeg commented on September 23, 2024

No worries, keep asking.

from workshop.

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.