Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Velocity reinitialization in particle tracing module
Posted 13 lug 2015, 06:45 GMT-4 Materials, Modeling Tools & Definitions, Parameters, Variables, & Functions, Studies & Solvers Version 5.0 2 Replies
Please login with a confirmed email address before reporting spam
Hi everyone,
I am trying to model a 2D particle particle collision using velocity reinitialization.
What I want is, the velocity should reinitialization into a set of specified x and y velocity components, whenever the r < 0.03. This is what I tried:
1. I have defined distance between particles using dest function. r= sqrt(qx-dest(qx)^2+(qy-dest(qy)^2+0.02)
2. Then I defined an analytic function as step1(-r) with argument r. (step function is already been defined under comp1 with location 0.03)
3. Then I put e = an1(r)
But I am getting an error message as "Internal error in expression evaluation.
- Undefined operator.: dest
- Feature: Time-Dependent Solver 1 (sol1/t1)"
When i put an arbitrary function of x and y instead of an1(r), it worked. It seems dest function can't be an entry for e. But I am not sure.
Pls help me....
Any other ways to do 2D collision is also greatly appreciated.
Thanks in advance :))))
I am trying to model a 2D particle particle collision using velocity reinitialization.
What I want is, the velocity should reinitialization into a set of specified x and y velocity components, whenever the r < 0.03. This is what I tried:
1. I have defined distance between particles using dest function. r= sqrt(qx-dest(qx)^2+(qy-dest(qy)^2+0.02)
2. Then I defined an analytic function as step1(-r) with argument r. (step function is already been defined under comp1 with location 0.03)
3. Then I put e = an1(r)
But I am getting an error message as "Internal error in expression evaluation.
- Undefined operator.: dest
- Feature: Time-Dependent Solver 1 (sol1/t1)"
When i put an arbitrary function of x and y instead of an1(r), it worked. It seems dest function can't be an entry for e. But I am not sure.
Pls help me....
Any other ways to do 2D collision is also greatly appreciated.
Thanks in advance :))))
2 Replies Last Post 13 lug 2015, 07:54 GMT-4