Units problems with program block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Units problems with program block
Hello everyone,
I'm trying to program a 2D finite difference in time domain problem. However, I can't run the program, since the units do not seem to match. Has anyone an idea of how to disable these units or maybe could tell me what did I do wrong ? Because I don't know if I did mistakes in my program or if units stand as the only problem.
Thanks in advance !
Cyril
- Labels:
-
Physics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Look for example at your function k(). You are trying to add a dimensionless "d" and and expression with dimension temperature^2. That can't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
d is just a coefficient imposed in the evolution of k with temperature, how could I defined it another way ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You have to make unit balance. Put correct units into your constants:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you, I'm new to Mathcad, I didn't know you could force units like this.
Concerning this, does the [] implies a matrix and is it a problem to unity balance ? (think it shouldn't but...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
All constants and variables must be dimensionless or all with dimension. You can not just size some. You can not name a variable in the program, with the same name as the program. (Delta T is defined as a constant, instead in the program you use it as an indexed variable)
