Comments (6)
Yes that is a flaw in the current implementation. The main reason for using this default is that we tried to stay compatible to input files using the old minimum refinement function. However I think it is more important to have working default values, so maybe we should just change the default "Coordinate system" to "cartesian". I did not quite get your suggestion (a typo?), but I think we always have to declare the 3-dimensional parameters, since in declare_parameters we do not know, whether we need them later on.
from aspect.
Yes, a typo. I meant to say "which would require doing
Functions::ParsedFunction::declare_parameters (prm, 1);
instead of
Functions::ParsedFunction::declare_parameters (prm, dim);"
Your suggestion would be one way. But I think there's a fundamental flaw that for one of the two choices of coordinate system, one will always have to also describe the name of the variables.
What would you think of splitting the class instead? If the default is to use a 1d, depth dependent function for historical reasons, then maybe we should have a different class called, say, MinRefinementFunctionCartesian or similar that simply always works in a dim-dependent coordinate system. I think the way it's currently done is always going to lead to confusion.
from aspect.
I am not generally opposing the idea of splitting the plugins. However I am a bit worried that we might provide to many options/files for the user, which are too similar in functionality. Would you be fine with the workaround in #177? We could simply always use the function with dim input variables and in the case the user only wants to use depth ignore the other components. This would need to be mentioned in the documentation of course.
from aspect.
Yes, I think your concern is well taken.
I suppose that could work. We would then document essentially something like the following (or did you have something else in mind?):
"Whatever the coordinate system chosen, the function you provide in the input file will depend on variables 'x', 'y' and 'z' (if in 3d). However, the meaning of these symbols depends on the coordinate system. In the Cartesian coordinate system, they simply refer to their natural meaning. If you have selected 'depth' for the coordinate system, then 'x' refers to the depth variable and 'y' and 'z' will simply always be zero. If you have selected a spherical coordinate system, then 'x' will refer to the radial distance of the point to the origin, 'y' to the ... and 'z' to the ..."
from aspect.
I updated #177. Do you think that is the way to go? It has the drawback that old parameter files using
"Set Variable names = depth"
need to be updated to something like
"Set Variable names = depth,y,z"
I explained that in the updated test file.
from aspect.
Fixed with #177.
from aspect.
Related Issues (20)
- DOC: Move plugin info
- FIX or DOC: Consistent user-facing stress convention
- Bug : Strain Rheology in ASPECT 2.5 and deal.II 9.5.0 HOT 1
- ASPECT 3: Run full cookbooks for all complicated models
- Remove items from declare_parameters in diffusion_dislocation material model
- Read in functions only for fields that represent chemical compositions
- Compute a better alpha factor in the implementation of the SPD-ness of the Newton method. HOT 6
- Build deal.ii 9.5.1 with gcc 13.2.0, an error while building trillinos 13.2.0 HOT 6
- ASPECT 3: Update some of our default values HOT 1
- compiling and running ASPECT on TACC Stampede3 HOT 17
- Improve matrix-free performance marginally. HOT 1
- Make the Newton method compatible with the GMG solver HOT 1
- ASPECT cannot compile without WorldBuilder HOT 3
- Particles with free surface hang HOT 9
- Restart with free surface and latest deal.II is failing HOT 8
- Add support for different coordinate systems to more function plugins
- Particle deregistration error on ASPECT v2.6.0-pre with deal.II v9.5.1 HOT 3
- [CI] Jenkins tester is timing out / OOM / slow HOT 1
- CMake: consider removing `deal_ii_setup_target()` and using import targets directly (deal.II version 9.5 or later)
- velocity along the wall HOT 1
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 aspect.