@@ -25,7 +26,7 @@ interface in the opaque object, and link it to the MBDyn’s module.
* 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
#### 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
...
...
@@ -37,7 +38,7 @@ corresponded each step to the simulation process in MBDyn. And according to this
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.
### Second Week: June 8th-14th
#### Second Week: June 8th-14th
The following Files are created:
* ce_models.cc.
...
...
@@ -48,10 +49,10 @@ The following Files are created:
In this week, the library "libCE_models.so" including an easy C::E model is generated, and connected to the MBDyn module::module-chrono-interface. And now, the C::E model and the MBDyn model could be loaded and solved in the meantime. In next week, attention will be paid to the data exchange between two solvers.
### Third Week: June 15th-21st
#### Third Week: June 15th-21st
In this week, I am working on the functions used in the co-simulation. Some functions are defined and added to the module. Through these functions, all coupling variables are saved in two std::vector containers in each iteration, and two solvers could send and receive data through these functions. More details will be defined in the following week.
### Fourth Week: June 22nd-28th
#### Fourth Week: June 22nd-28th
In this week, I am working on the functions used in the co-simulation, and defined the following functions to construct the problem:
* AssRes();
...
...
@@ -61,22 +62,22 @@ In this week, I am working on the functions used in the co-simulation, and defin
And a demo that does not exchange coupling variables is run to test the code.
In next week, I will pay attention to imposing the motion to the selected bodies in C::E model.
### Fifth Week: June 29th-July 5th
#### Fifth Week: June 29th-July 5th
In this week, the codes for one coupling node is almost finished. I complied the codes, but didn't test them. Besides, the current codes need to be more general for a general coupling node, and that's what I will focus on next week.
### Sixth Week: July 6th-July 12nd
#### Sixth Week: July 6th-July 12nd
In this week, the codes for one coupling node is tested by the two-dimension two-mass example. It seems that everything is OK. In next week, I will check the codes with different three-dimension examples. Besides, I will also think about how to impose coupling velocities to C::E bodies.
### Seventh Week: July 13rd-July 19th
#### Seventh Week: July 13rd-July 19th
In this week, two examples, three-dimensional two-mass oscillator system and a three-dimensional pendulum system, are tested using the module-chrono-interface. It follows that results obtained are consistent with those obtained from the co-simulaiton using sockets, and the monolithic methods. As for the velocities problem, I didn't find a suitable interface in Chrono, so I think I would try to use some interpolation methods in Chrono to generate high-order position lines that include the information about velocities.
### Eighth Week: July 20th-July 26th
#### Eighth Week: July 20th-July 26th
To impose velocities to bodies in C::E, I may need more time to know the interpolation methods about quaternion. In the meantime, I added a check process to ensure that two codes have the consistent initial conditions, and improved codes for arbitrary number of nodes. The codes are complied successfully. In next week, I will test a multi-node case.
### Ninth and tenth Weeks: July 27th-August 9th
#### Ninth and tenth Weeks: July 27th-August 9th
To impose velocities to bodies in C::E, I try to use the SetPoint() function in Chrono, which gives the C::E motor information about the position, velocity, and acceleration. The codes are compiled, and tested. It follows that the results agree with those obtained from the linear interpolation method used before. However, some oscillations are observed on the velocity and acceleration levels. I need to know why these oscillations happen and how to avoid them.