Skip to content

Commit

Permalink
added all funcs to doc manual
Browse files Browse the repository at this point in the history
  • Loading branch information
0815Creeper committed Oct 8, 2023
1 parent 7c2d83c commit 031fad1
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 9 deletions.
4 changes: 3 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ makedocs(sitename="FMI.jl",
collapselevel = 1,
sidebar_sitename = false,
edit_link = nothing,
size_threshold_ignore = ["fmi2_lowlevel_librarys.md","fmi3_lowlevel_librarys.md"]
size_threshold_ignore = ["deprecated.md","fmi2_lowlevel_librarys.md","fmi3_lowlevel_librarys.md"]
),
modules = [FMI, FMIImport, FMICore],#, FMIBuild]
checkdocs=:exports,
Expand All @@ -32,12 +32,14 @@ makedocs(sitename="FMI.jl",
]
"User Level API - FMI.jl" => "library.md"
"Developer Level API" => Any[
"fmi_lowlevel_librarys.md",
"fmi2_lowlevel_librarys.md",
"fmi3_lowlevel_librarys.md"
]
"API Index" => "index_library.md"
"Related Publication" => "related.md"
"Contents" => "contents.md"
hide("Deprecated" => "deprecated.md")
]
)

Expand Down
19 changes: 17 additions & 2 deletions docs/src/deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@

### internal funtions: remove export?
```@docs
fmi2CallbackLogger
fmi2CallbackAllocateMemory
fmi2CallbackFreeMemory
fmi3CallbackLogger
fmi2CallbackFunctions
fmi2CallbackStepFinished
```

### deprecated
Mostly wrappers that are not supposed to be used
Mostly wrappers that are not supposed to be used (call specific wrapped functions instead)

```@docs
fmiSetReal
fmiReset
fmiGetGenerationTool
fmiEnterContinuousTimeMode
fmiGetEventIndicators
fmiSetBoolean
fmiFreeInstance!
fmiInstantiate!
fmiTerminate
fmiDoStep
fmiSetInteger
fmiCompletedIntegratorStep
fmiExitInitializationMode
fmiSetupExperiment
Expand All @@ -26,7 +42,6 @@ fmiGetGenerationDateAndTime
fmiGetContinuousStates
fmiSetContinuousStates
fmiGetNominalsOfContinuousStates
fmiGetState
fmiSetTime
fmiSetString
fmiGetString
Expand Down
30 changes: 30 additions & 0 deletions docs/src/fmi2_lowlevel_librarys.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,26 @@
```@docs
FMU2
FMU2Component
FMU2ComponentEnvironment
fmi2Struct
fmi2Initial
FMU2Solution
fmi2ScalarVariable
fmi2SimpleType
fmi2Type
fmi2Unit
fmi2Char
fmi2True
fmi2False
fmi2Variability
fmi2VariableDependency
fmi2DependencyKind
fmi2EventInfo
FMU2Event
FMU2ExecutionConfiguration
fmi2Status
fmi2StatusOK
fmi2Annotation
```

## FMI Common Concepts for Model Exchange and Co-Simulation
Expand All @@ -19,8 +34,10 @@ This section documents functions to inquire information about the model descript

#### Load/Parse the FMI model description
```@docs
fmi2ModelDescription
fmi2LoadModelDescription
```

#### Get value functions
```@docs
fmi2GetDefaultStartTime
Expand Down Expand Up @@ -67,6 +84,12 @@ fmi2GetInputNamesAndStarts
fmi2GetVersion
fmi2GetTypesPlatform
fmi2GetSolutionDerivative
fmi2StringToVariability
fmi2VariabilityToString
fmi2StatusToString
fmi2DataTypeForValueReference
fmi2DependencyKindToString
fmi2StringToDependencyKind
```

### Creation, Destruction and Logging of FMU Instances
Expand Down Expand Up @@ -202,6 +225,7 @@ fmi2GetRealOutputDerivatives
The computation of time steps is controlled by the following function.

```@docs
fmi2StatusKind
fmi2DoStep
fmi2CancelStep
```
Expand All @@ -227,12 +251,18 @@ fmi2Unload
fmi2Load
fmi2Reload
```

### Conversion functions

```@docs
fmi2StringToValueReference
fmi2ModelVariablesForValueReference
fmi2ValueReferenceToString
fmi2Causality
fmi2StringToCausality
fmi2CausalityToString
fmi2InitialToString
fmi2StringToInitial
fmi2GetSolutionState
fmi2GetSolutionValue
fmi2GetSolutionTime
Expand Down
106 changes: 104 additions & 2 deletions docs/src/fmi3_lowlevel_librarys.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,31 @@
```@docs
FMU3
FMU3Instance
FMU3InstanceEnvironment
fmi3Struct
fmi3Initial
FMU3Solution
fmi3Variable
fmi3VariableDependency
fmi3SimpleType
fmi3Type
fmi3Unit
fmi3Float32
fmi3Float64
fmi3Int8
fmi3Int16
fmi3Int32
fmi3Int64
fmi3True
fmi3False
fmi3IntervalQualifier
fmi3Variability
fmi3DependencyKind
FMU3Event
FMU3ExecutionConfiguration
fmi3Status
fmi3StatusOK
fmi3Annotation
```

## FMI Common Concepts for Model Exchange and Co-Simulation
Expand All @@ -18,6 +39,7 @@ This section documents functions to inquire information about the model descript

#### Load/Parse the FMI model description
```@docs
fmi3ModelDescription
fmi3LoadModelDescription
```
#### Get value functions
Expand All @@ -43,15 +65,33 @@ fmi3IsScheduledExecution

```@docs
fmi3GetModelIdentifier
fmi3ProvidesAdjointDerivatives
fmi3CanGetSetState
fmi3CanSerializeFMUState
fmi3ProvidesDirectionalDerivatives
fmi3GetVersion
fmi3VariableNamingConvention
fmi3VariableNamingConventionFlat
fmi3VariableNamingConventionStructured
fmi3VariableNamingConventionToString
fmi3StringToVariableNamingConvention
fmi3StringToVariability
fmi3VariabilityToString
fmi3StatusToString
fmi3DependencyKindToString
fmi3StringToDependencyKind
```

### Creation, Destruction and Logging of FMU Instances
This section documents functions that deal with instantiation, destruction and logging of FMUs.

```@docs
fmi3InstantiateCoSimulation
fmi3InstantiateCoSimulation!
fmi3InstantiateModelExchange
fmi3InstantiateModelExchange!
fmi3InstantiateScheduledExecution
fmi3InstantiateScheduledExecution!
fmi3FreeInstance!
fmi3SetDebugLogging
Expand Down Expand Up @@ -83,34 +123,74 @@ fmi3GetFloat32
fmi3GetFloat32!
fmi3GetFloat64
fmi3GetFloat64!
fmi3GetInt8
fmi3GetInt8!
fmi3GetInt16
fmi3GetInt16!
fmi3GetInt32
fmi3GetInt32!
fmi3GetInt64
fmi3GetInt64!
fmi3GetUInt8
fmi3GetUInt8!
fmi3GetUInt16
fmi3GetUInt16!
fmi3GetUInt32
fmi3GetUInt32!
fmi3GetUInt64
fmi3GetUInt64!
fmi3GetBoolean
fmi3GetBoolean!
fmi3GetString
fmi3GetString!
fmi3GetBinary
fmi3GetBinary!
fmi3Set
fmi3SetFloat32
fmi3SetFloat64
fmi3SetInt8
fmi3SetInt16
fmi3SetInt32
fmi3SetInt64
fmi3SetUInt8
fmi3SetUInt16
fmi3SetUInt32
fmi3SetUInt64
fmi3SetBoolean
fmi3SetString
fmi3SetBinary
```


### Getting and Setting the Complete FMU State
The FMU has an internal state consisting of all values that are needed to continue a simulation. This internal state consists especially of the values of the continuous-time states, iteration variables, parameter values, input values, delay buffers, file identifiers, and FMU internal status information. With the functions of this section, the internal FMU state can be copied and the pointer to this copy is returned to the environment. The FMU state copy can be set as actual FMU state, in order to continue the simulation from it.

```@docs
fmi3GetFMUState
fmi3GetFMUState!
fmi3SetFMUState
fmi3FreeFMUState!
fmi3SerializeFMUState
fmi3SerializeFMUState!
fmi3SerializedFMUStateSize
fmi3SerializedFMUStateSize!
fmi3DeSerializeFMUState
fmi3DeSerializeFMUState!
fmi3UpdateDiscreteStates
fmi3EvaluateDiscreteStates
```

TODO: Clockstuff

```@docs
fmi3GetIntervalDecimal!
fmi3GetIntervalFraction!
fmi3GetShiftDecimal!
fmi3GetShiftFraction!
fmi3GetClock
fmi3GetClock!
fmi3SetIntervalDecimal
fmi3SetIntervalFraction
fmi3SetClock
fmi3ActivateModelPartition
fmi3CallbackClockUpdate
Expand All @@ -128,6 +208,9 @@ fmi3GetDirectionalDerivative
fmi3GetDirectionalDerivative!
fmi3GetContinuousStateDerivatives
fmi3GetContinuousStateDerivatives!
fmi3GetAdjointDerivative!
fmi3GetOutputDerivatives
fmi3GetOutputDerivatives!
```

## FMI for Model Exchange
Expand Down Expand Up @@ -155,6 +238,8 @@ fmi3CompletedIntegratorStep!
fmi3GetEventIndicators!
fmi3GetContinuousStates!
fmi3GetNominalsOfContinuousStates!
fmi3GetNumberOfContinuousStates
fmi3GetNumberOfContinuousStates!
```

## FMI for Co-Simulation
Expand All @@ -170,14 +255,15 @@ derivatives of the inputs with respect to time can be provided. Also, higher der
higher order interpolation.

```@docs
fmi3InstantiateCoSimulation
fmi3InstantiateCoSimulation!
fmi3CallbackIntermediateUpdate
```

### Computation
The computation of time steps is controlled by the following function.

```@docs
fmi3EnterStepMode
fmi3DoStep!
```

### Retrieving Status Information from the Slave
Expand All @@ -203,6 +289,12 @@ fmi3StringToValueReference
fmi3ModelVariablesForValueReference
fmi3ValueReferenceToString
fmi3IntervalQualifierToString
fmi3StringToIntervalQualifier
fmi3Causality
fmi3StringToCausality
fmi3CausalityToString
fmi3InitialToString
fmi3StringToInitial
```

### External/Additional functions
Expand All @@ -213,4 +305,14 @@ fmi3GetJacobian!
fmi3GetFullJacobian
fmi3GetFullJacobian!
fmi3GetStartValue
fmi3GetNumberOfVariableDependencies!
fmi3GetVariableDependencies!
fmi3GetDependencies
fmi3SampleDirectionalDerivative
fmi3SampleDirectionalDerivative!
```

```@docs
fmi3StringToType
fmi3TypeToString
```
16 changes: 16 additions & 0 deletions docs/src/fmi_lowlevel_librarys.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# FMI Import/Export/Core/Build .jl Library Functions

TODO: move FMI to User API

```@docs
FMU
FMUSolution
FMUEvent
FMUExecutionConfiguration
FMULogLevel
logInfo
logWarning
logError
fmiGetStartValue
fmiGetState
fmiSetState
fmiGetModelName
fmiCanGetSetState
fmiFreeState!
loadBinary
```
3 changes: 3 additions & 0 deletions docs/src/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ fmiStringToValueReference
# External/additional functions

```@docs
fmiSet
fmiGet
fmiGet!
fmiGetNumberOfStates
fmiGetDependencies
fmiInfo
Expand Down
2 changes: 1 addition & 1 deletion src/FMI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export fmiInfo
export fmiGetModelName, fmiGetGUID, fmiGetGenerationTool, fmiGetGenerationDateAndTime

export fmiProvidesDirectionalDerivative
export fmiIsCoSimulation, fmiIsModelExchange
export fmiIsCoSimulation, fmiIsModelExchange, fmiIsScheduledExecution
export fmiGetDependencies
export fmiGetStartValue, fmiStringToValueReference
export fmiGet, fmiGet!, fmiSet
Expand Down
Loading

0 comments on commit 031fad1

Please sign in to comment.