现有组件功能与Amesim组件比较对齐,补全功能;仿真服务启动环境检测,旧版json工程文件适配读取
This commit is contained in:
1 parent
b6c22a54f8
commit
6fc9afe41d
119 files changed
+260114
-351
No files matched your search
@@ -7,6 +7,15 @@ typedef struct {
|
||||
double lower, upper;
|
||||
double lower_restitution, upper_restitution, lower_threshold, upper_threshold;
|
||||
} NativeStop;
|
||||
/* Discrete slip direction is stored with the sampled state, never in a global
|
||||
* RHS cache. Trial/Jacobian evaluations cannot change sticking/sliding mode. */
|
||||
typedef struct {
|
||||
int velocity_index, mode_index;
|
||||
double velocity_threshold, breakaway_force;
|
||||
} NativeFriction;
|
||||
double native_dry_friction(double velocity, double static_share, double coulomb,
|
||||
double stiction, double stribeck_velocity, int stribeck,
|
||||
double mode);
|
||||
/* Constants are emitted per medium instance by the model compiler. */
|
||||
typedef struct { int real_helium; double R, cp, Tref, slope, mu, muT, S; } NativeMedium;
|
||||
/* Caller-owned scratch for ONE model_eval. Keys use exact values and a copy of
|
||||
@@ -27,6 +36,7 @@ typedef struct {
|
||||
void native_properties_init(NativePropertyCache *, NativePropertyState *, size_t capacity);
|
||||
int native_gas_context(NativePropertyCache *, double m, double U, double V, NativeGas *);
|
||||
int native_medium_gas_context(NativePropertyCache *, const NativeMedium *, double m, double U, double V, NativeGas *);
|
||||
int native_polytropic_gas_context(NativePropertyCache *, const NativeMedium *, double mass, double T, double V, NativeGas *);
|
||||
double native_temperature_ph_context(NativePropertyCache *, const NativeMedium *, double p, double h);
|
||||
double native_density_context(NativePropertyCache *, const NativeMedium *, double p, double T);
|
||||
int native_orifice_context(NativePropertyCache *, double p1, double p2, double h1, double h2,
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
#define NATIVE_RUNTIME_H
|
||||
#include "model.h"
|
||||
#include <stddef.h>
|
||||
#ifndef NFRICTIONS
|
||||
#define NFRICTIONS 0
|
||||
#endif
|
||||
typedef struct {
|
||||
double start, stop, sample_step, max_step, rtol, timeout;
|
||||
int bdf, record_samples;
|
||||
|
||||
Reference in new issue
Block a user