-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from kevinksyTRD/create-a-minimum-example
Examples for model identification and quarter truck simulation added
- Loading branch information
Showing
40 changed files
with
23,421 additions
and
519 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<OspSystemStructure xmlns="http://opensimulationplatform.com/MSMI/OSPSystemStructure" | ||
version="0.1"> | ||
<BaseStepSize>0.01</BaseStepSize> | ||
<Simulators> | ||
<Simulator name="chassis" source="chassis.fmu"> | ||
<InitialValues> | ||
<InitialValue variable="C.mChassis"> | ||
<Real value="400"/> | ||
</InitialValue> | ||
<InitialValue variable="C.kChassis"> | ||
<Real value="15000"/> | ||
</InitialValue> | ||
<InitialValue variable="R.dChassis"> | ||
<Real value="1000"/> | ||
</InitialValue> | ||
</InitialValues> | ||
</Simulator> | ||
<Simulator name="wheel" source="wheel.fmu"> | ||
<InitialValues> | ||
<InitialValue variable="C.mWheel"> | ||
<Real value="40"/> | ||
</InitialValue> | ||
<InitialValue variable="C.kWheel"> | ||
<Real value="150000"/> | ||
</InitialValue> | ||
<InitialValue variable="R.dWheel"> | ||
<Real value="0"/> | ||
</InitialValue> | ||
</InitialValues> | ||
</Simulator> | ||
<Simulator name="ground" source="ground.fmu"/> | ||
</Simulators> | ||
<Connections> | ||
<VariableConnection> | ||
<Variable simulator="chassis" name="p.e"/> | ||
<Variable simulator="wheel" name="p1.e"/> | ||
</VariableConnection> | ||
<VariableConnection> | ||
<Variable simulator="wheel" name="p1.f"/> | ||
<Variable simulator="chassis" name="p.f"/> | ||
</VariableConnection> | ||
<VariableConnection> | ||
<Variable simulator="wheel" name="p.e"/> | ||
<Variable simulator="ground" name="p.e"/> | ||
</VariableConnection> | ||
<VariableConnection> | ||
<Variable simulator="ground" name="p.f"/> | ||
<Variable simulator="wheel" name="p.f"/> | ||
</VariableConnection> | ||
</Connections> | ||
</OspSystemStructure> |
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
example/fmus/osp_truck_simulation/chassis_OspModelDescription.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<OspModelDescription xmlns="http://opensimulationplatform.com/MSMI/OSPModelDescription" | ||
version="0.1"> | ||
<UnitDefinitions> | ||
<Unit name="m/s"> | ||
<BaseUnit kg="0" m="1" s="-1" A="0" K="0" mol="0" cd="0" rad="0" factor="1.0" offset="0.0"/> | ||
</Unit> | ||
<Unit name="N"> | ||
<BaseUnit kg="1" m="1" s="-2" A="0" K="0" mol="0" cd="0" rad="0" factor="1.0" offset="0.0"/> | ||
</Unit> | ||
</UnitDefinitions> | ||
|
||
<VariableGroups> | ||
<LinearMechanicalPort name="linear mechanical port"> | ||
<Force name="force"> | ||
<Variable ref="p.f" unit="N"/> | ||
</Force> | ||
<LinearVelocity name="velocity"> | ||
<Variable ref="p.e" unit="m/s"/> | ||
</LinearVelocity> | ||
</LinearMechanicalPort> | ||
</VariableGroups> | ||
</OspModelDescription> |
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
example/fmus/osp_truck_simulation/ground_OspModelDescription.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<OspModelDescription xmlns="http://opensimulationplatform.com/MSMI/OSPModelDescription" | ||
version="0.1"> | ||
<UnitDefinitions> | ||
<Unit name="m/s"> | ||
<BaseUnit kg="0" m="1" s="-1" A="0" K="0" mol="0" cd="0" rad="0" factor="1.0" offset="0.0"/> | ||
</Unit> | ||
<Unit name="N"> | ||
<BaseUnit kg="1" m="1" s="-2" A="0" K="0" mol="0" cd="0" rad="0" factor="1.0" offset="0.0"/> | ||
</Unit> | ||
</UnitDefinitions> | ||
|
||
<VariableGroups> | ||
<LinearMechanicalPort name="linear mechanical port"> | ||
<Force name="force"> | ||
<Variable ref="p.f" unit="N"/> | ||
</Force> | ||
<LinearVelocity name="velocity"> | ||
<Variable ref="p.e" unit="m/s"/> | ||
</LinearVelocity> | ||
</LinearMechanicalPort> | ||
</VariableGroups> | ||
</OspModelDescription> |
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
example/fmus/osp_truck_simulation/wheel_OspModelDescription.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<OspModelDescription xmlns="http://opensimulationplatform.com/MSMI/OSPModelDescription" | ||
version="0.1"> | ||
<UnitDefinitions> | ||
<Unit name="m/s"> | ||
<BaseUnit kg="0" m="1" s="-1" A="0" K="0" mol="0" cd="0" rad="0" factor="1.0" offset="0.0"/> | ||
</Unit> | ||
<Unit name="N"> | ||
<BaseUnit kg="1" m="1" s="-2" A="0" K="0" mol="0" cd="0" rad="0" factor="1.0" offset="0.0"/> | ||
</Unit> | ||
</UnitDefinitions> | ||
|
||
<VariableGroups> | ||
<LinearMechanicalPort name="chassis port"> | ||
<Force name="chassis force"> | ||
<Variable ref="p1.f" unit="N"/> | ||
</Force> | ||
<LinearVelocity name="chassisVelocity"> | ||
<Variable ref="p1.e" unit="m/s"/> | ||
</LinearVelocity> | ||
</LinearMechanicalPort> | ||
<LinearMechanicalPort name="ground port"> | ||
<Force name="ground force"> | ||
<Variable ref="p.f" unit="N"/> | ||
</Force> | ||
<LinearVelocity name="ground velocity"> | ||
<Variable ref="p.e" unit="m/s"/> | ||
</LinearVelocity> | ||
</LinearMechanicalPort> | ||
</VariableGroups> | ||
</OspModelDescription> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.