Confused about units in D(t,X) for AdamsBDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Confused about units in D(t,X) for AdamsBDF
I'm attaching a simple file that uses AdamsBDF to solve a spring/mass motion problem. I added units to everything and it worked perfectly, but then I added an "if" statement that generates a ramp function and tried to use it in the D(t,X) matrix and I get a units error even though the ramp function spits out Newtons.
You can reproduce the above by toggling which F(t) is disabled or enabled.
If you want to look at the file (Prime 3.0 format) and provide feedback, I would appreciate it!
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Travis Loewen wrote:
I'm attaching a simple file that uses AdamsBDF to solve a spring/mass motion problem. I added units to everything and it worked perfectly, but then I added an "if" statement that generates a ramp function and tried to use it in the D(t,X) matrix and I get a units error even though the ramp function spits out Newtons.
You can reproduce the above by toggling which F(t) is disabled or enabled.
If you want to look at the file (Prime 3.0 format) and provide feedback, I would appreciate it!
Mathcad is complaining that you are comparing t (second) against scalars. See fix below.
Stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Travis Loewen wrote:
I'm attaching a simple file that uses AdamsBDF to solve a spring/mass motion problem. I added units to everything and it worked perfectly, but then I added an "if" statement that generates a ramp function and tried to use it in the D(t,X) matrix and I get a units error even though the ramp function spits out Newtons.
You can reproduce the above by toggling which F(t) is disabled or enabled.
If you want to look at the file (Prime 3.0 format) and provide feedback, I would appreciate it!
Mathcad is complaining that you are comparing t (second) against scalars. See fix below.
Stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks Stuart!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
No problem, Travis.
Stuart
