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

Subregion vs norm for setting the sample geometry #37

Closed
marijanbeg opened this issue Jul 3, 2020 · 1 comment
Closed

Subregion vs norm for setting the sample geometry #37

marijanbeg opened this issue Jul 3, 2020 · 1 comment

Comments

@marijanbeg
Copy link
Member

Is it then the same for running simulations in ubermag to define the geometry either region and using the saturation magnetisation, or the so called region is the total simulation space and the geometry is defined via the saturation magnetisation?

@marijanbeg
Copy link
Member Author

These are three different things: (i) the region defines the cuboid in space that you want to simulate. (ii) the mesh is a spatial discretisation of this region into tiny simulation cells. (iii) to define the magnetisation on this mesh, you need to provide a vector field to Ubermag. You can do this by giving a direction and Ms value as Python functions, or by defining a spatially varying field using subregions in the mesh and then passing dictionaries to define the value and norm.

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