Re: Sample polling program code?
- From: "dpb" <dpbozarth@xxxxxxxx>
- Date: 30 Mar 2007 18:54:10 -0700
On Mar 30, 5:18 pm, "sk8terg1rl" <sk8terg1rl_2...@xxxxxxxxxxx> wrote:
Hi dpb,....
On 30 Mar, 18:47, "dpb" <dpboza...@xxxxxxxx> wrote:
On Mar 30, 1:15 pm, "sk8terg1rl" <sk8terg1rl_2...@xxxxxxxxxxx> wrote:
...> Fortunately I can tell when the event has finished by parsing an
output file for zero acceleration. ......
Don't know what simulation tool you're using, but in the past w/ the
simulation tools I've used, there were facilities to allow utilizing
computed outputs in a generic control system model ...
I'm using LS Dyna. Of course if someone knows a flag for me to get it....
to stop once acceleration is zero I would be delighted to hear it.
2209 pages of the manual is quite a task, going through, without even
knowing the keywords to look for :-(
This specific modeling code had the ability to send a command to the
OS shell and that tied into a control variable (the acceleration in
your case) would be able to be used to make such decision(s). That
is, it wasn't a feature built in directly that had the identified
function "STOP_ME_ON_CONDITION" but the use of two apparently
unrelated features in conjunction with each other -- the control
variables which were designed with the idea of modeling the process
control system feedbacl during the transient simulation and the
system() functionality which was typically used only for pretty
mundane file copy or other housekeeping chores. I seriously doubt any
of the original code developers really had the overall functionality
in mind when it was written so there certainly was no documentation on
how to do the particular "trick". Of course, had been running that
code extensively for quite a number of years at that time so had
gotten to know it quite thoroughly by then. :)
Whether such a feature or way to manufacture such a feature is
available in LS Dyna, I have no idea, sorry.
.
- References:
- Re: Sample polling program code?
- From: dpb
- Re: Sample polling program code?
- Prev by Date: Re: variable content lost
- Next by Date: Re: Why float is called as 'float', not 'real'?
- Previous by thread: Re: Sample polling program code?
- Next by thread: array operations on non-conforming arrays -- do compilers catch them?
- Index(es):
Relevant Pages
|