Hi,
You will find that all of the existing suspensions are derived from
ChSuspension so yes, you can take that as a base class and create your
own. The good news is that there are many examples you can study as a
starting point.
The other alternative you have is to build your own suspension based on
the "Generic Wheeled Suspension". Admittedly, that is not currently
documented extensively, but this is a type of suspension that allows you
to "build your own" using existing building blocks. It is based on the
JSON templates that are available for all of these suspensions [1].
There are a few examples to get you started. The UAZ has a
FrontSAELeafspringAxle suspension that is both available as a
SAEToeBarLeafspringAxle based template [2] and a replica of that as a
GenericWheeledSuspension [3]. This one is quite complex. Another example
is for the HMMWV [4].
Greetings, Marcel
[1]
https://github.com/projectchrono/chrono/blob/main/src/chrono_vehicle/wheeled_vehicle/suspension/GenericWheeledSuspension.h
[2]
https://github.com/projectchrono/chrono/blob/main/data/vehicle/uaz/suspension/UAZBUS_FrontSAELeafspringAxle.json
[3]
https://github.com/projectchrono/chrono/blob/main/data/vehicle/uaz/suspension/UAZBUS_FrontSAELeafspringAxle_replica.json
[4]
https://github.com/projectchrono/chrono/blob/main/data/vehicle/hmmwv/suspension/HMMWV_DoubleWishboneFront_replica.json
On 31-Aug-23 10:05, '马浩楠' via ProjectChrono wrote:
My current requirement is to create several different types of
suspensions. The suspensions available in the vehicle library don't
quite meet my needs. I'd like to create my own suspensions. Could you
please advise if this is feasible? If it is, how can I use the
ChSuspension base class to create the suspensions I need?
I'm using a translation software, so there might be some grammar
issues. Sorry
--
You received this message because you are subscribed to the Google
Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/projectchrono/5f856bb5-3288-4898-8a77-a71ca3a7519fn%40googlegroups.com
<https://groups.google.com/d/msgid/projectchrono/5f856bb5-3288-4898-8a77-a71ca3a7519fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/projectchrono/be14b292-c2ab-d32e-3f90-dfa34efef4e2%40gmail.com.