I am trying to perform a co-simulation with Dymola (a 1 D simulation tool) using .dll files but not able to find supporting literature or support document on steps to be followed. Any support would be appreciated.
Whichever software you're exporting from, you may just as well be able to use FMI. Dymola has pretty good support for this, using the free Dassault FMU kit for imports, I believe, and when exporting, using standard on-board capabilities (or additional separately licensed capabilities like code-gen)
Similarly, you can also export ADAMS models as FMU. I know this isn't what you asked, but it's worth considering if you have any control over the process.
I am new to co-simulations and here I am trying to provide a force input for plunger actuation. This is simple mechanical setup of parking gear lock actuation where force input from Dymola is supposed to actuate plunger movement.
I've Dymola output .dll file which has to be used for co-simulation.
FMU is not an option currently since it will take time to get those files from user. As the .dll files are already available, I am trying to utilise the same.
That's unfortunate - Dymola & ADAMS are both designed to use this for cosimulation, via the ADAMS/Controls plugin, where there is an interface designed to ease the use of FMU.
The usual context I have seen DLL used directly is when defining say a force (see search term SFOSUB) via a user subroutine. You can point ADAMS/View to a library (before the :: ) and a subroutine within it (after the ::) and feed inputs to the code.
You can also just write it into the solver code, for which several statements support the use of the subroutine option, which might look like the following:
The library "myTire" alluded to, would be the DLL (Dynamically Linked Library) and should be located in the working directory. If I remember correctly, though, there's much more to this than meets the eye, and it might not be possible to make just any DLL do what you want. I will have to allow you to refer to others for that information.
Consider looking at SIMCOMPANION as a springboard:
Thanks for answering Mr. Harrison. This will help me a lot. Let me go through this. I will also try to proceed with FMU as explained in your first answer. Do you have any support article for FMU approach as well?