Comments (4)
Currently implemented so that the runmixin methods of calculating heat loads work for also 2D wall. However, currently the incident angle will not work(will not return anything meaningful), since for 2D wall the incident angle is determined in only R and z (and phi would be determined on the collision point of the marker, but that is not currently used for 3D detection).
Therefore, iangle for 2D walls will not currently result in anything meaningful. Should the code say something of this to the user, or what is your opinion @miekkasarki ?
from ascot5.
What do you mean "for 2D wall the incident angle is determined in only R and z"? Isn't there a sufficient information to calculate the angle in post-processing?
I think the easiest way to have all features of the 3D wall available for 2D wall is to assume that the 2D wall is 3D where each element is a stripe that revolves around the whole torus. That way you get the area and surface normal (which now depends on phi) which are sufficient to calculate any quantity of interest.
from ascot5.
What I mean by that is that I did not modify the runmixin method of calculating heat loads. The runmixin only needed to call wall.area()
. I implemented that area method for 2D walls. However, the heatload method also wants surface normals of the walls (which are undefined for the 2D walls due to phi), so currently the iangle does not work with the method. Moreover, I am not certain of the usefulness of that metric for 2D walls. (If you are certain it is useful, I can modify the runmixin heatload method to get the correct normals for 2D walls. The reason I originally did not do it is because the method is getting too large/convoluted.)
My question to you was, (assuming no modification to the heatload code) should I give a note that the 2D incident angle is not defined.
from ascot5.
Well it could be useful, but for now it is sufficient that the docstring states that iangle is not calculated for 2D walls.
from ascot5.
Related Issues (20)
- rho5d distribution for bbnbi5 runs only populates the first theta bin HOT 18
- Markergen support for rho5d distributions. HOT 1
- Distribution slicing preserves range of dimension in the abscissa edges
- 2D wall leaks when first and last points in the input are not the same
- Import MARS-F should support both data formats HOT 1
- BBNBI5 resulting markers and distribution weights don't match HOT 1
- Bug in atomic model HOT 1
- Distributions not properly updated when using adaptive timestep HOT 1
- Alternative definition for Coulomb logarithm
- Stellarator test case and tutorial
- Improve input error detection HOT 2
- ICRH operator
- Serpent-AFSI interface
- Segfault in markergen rhoto5d HOT 1
- Bug in afsi.thermal HOT 9
- No n_phi dependence in afsi_get_volume HOT 2
- Major cleanup of a5py (and some plans for ASCOT5's future)
- Restart option for very time consuming jobs HOT 3
- Upgrade to numpy 2.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ascot5.