Added GSoC 2020 students' blogs authored by Andrea Zanoni's avatar Andrea Zanoni
# Google Summer of Code 2020 students blogs
[Runsen Zhang](@buaa_zhangrunsen) and [Boyan Zhou](@steven.b.zhou), our 2020 GSoC
students, will post here their weekly development blogs.
* Runsen Zhang: [MBDyn -- Chrono::Engine interface](#a-user-defined-runtime-loadable-module-template-for-co-simulation-with-chrono-engine)
* Boyan Zhou: [Embedded Optimization](#embedded-optimization)
## A user-defined runtime loadable module template for co-simulation with
[Chrono::Engine](http://projectchrono.org/)
### Runsen Zhang
#### Mentors: Pierangelo Masarati, Andrea Zanoni
#### Branch: `gsoc_chrono_interface`
The goal of the project is to enable tight coupling co-simulation with
[Chrono::Engine](https://projectchrono.org/) (C::E).
The MBDyn-C::E interface will be developed into a runtime loadable module,
so that users can built their own C::E models with the
interface in the opaque object, and link it to the MBDyn’s module.
**Objectives**:
* Minimum: interface for single node in MBDyn & in C::E
MBDyn-side code for MBDyn module
* C::E-side code for MBDyn-C::E interface
* C::E code for example (e.f. a mass, or a mass and a spring, ...)
* Desired: interface for arbitrary number of nodes
### First Week: June 1st-7th
In the first week, my mentors and I settled on the plan.
The scope of the first part of my plan is to built the MBDyn user-defined element, that
can achieve the tight coupling co-simulation. This defined-element is like the external
structural force element, and can call the simulation of a C::E model.
I summarised the coupling procedure in the co-simulation of C::E system, and
corresponded each step to the simulation process in MBDyn. And according to this, I am
starting writing the MBDyn-side codes. When this part works, I will test it using a
simple C::E model, and show them to the mentors.
## Embedded Optimization
### Boyan Zhou
#### Mentors: Andrea Zanoni, Pierangelo Masarati
#### Branch: `gsoc_optimization`
The goal of the project is to enable the solution of **overactuated** inverse dynamics
problems directly in the MBDyn code.
The goal is for the developed code to enable the problems
* **fully determined overactuated**
* **underdetermined overactuated**
**Objectives**
* Minimum: enable the **overactuated** problems solving the underdetermined inverse
dynamics problem with a minimum norm solution;
* Desired: allow bounds to be added to the actuation (generalized) forces;
* Desired: allow the user to select the functional of the actuation (generalized) forces
to be minimized;
* Desired: allow for arbitrary contraints to be added.
### First Week: June 1st-7th
My first week was mainly spent on studying the problem:
* read through inverse dynamic problem in techman, figure out different problem types;
* modified `mbdyn/base/invdyn.h`;
* start to read `mbdyn/base/invsolver.cc` and `mbdyn/base/invdataman.cc`
I am now working on the code and I think I am able to do more next week.