高温氦气物性补全;三通四通能量计算bug修正

This commit is contained in:
ljz committed 2026-09-15 17:57:20 +08:00
1 parent 6fc9afe41d
commit 2b07d996cf
133 files changed
+5230 -253310

No files matched your search

+9
View File
@@ -24,14 +24,23 @@ enum {
NATIVE_PROPERTY_PT=1, NATIVE_PROPERTY_H=2, NATIVE_PROPERTY_RHO=4,
NATIVE_PROPERTY_MU=8, NATIVE_PROPERTY_ISENTROPIC=16
};
/* Optional observer for one evaluation, independent of cache capacity.
* Slots: EOS, ideal caloric data, dynamic viscosity; each has min/max T. */
#define NATIVE_PROPERTY_DOMAINS 3
typedef struct {
unsigned seen;
double minimum[NATIVE_PROPERTY_DOMAINS], maximum[NATIVE_PROPERTY_DOMAINS];
} NativePropertyTemperatures;
typedef struct {
NativeMedium medium;
double p, T, h, rho, mu, isentropic_factor, isentropic_exponent;
unsigned valid;
NativePropertyTemperatures *temperatures;
} NativePropertyState;
typedef struct {
NativePropertyState *states;
size_t count, capacity;
NativePropertyTemperatures *temperatures;
} NativePropertyCache;
void native_properties_init(NativePropertyCache *, NativePropertyState *, size_t capacity);
int native_gas_context(NativePropertyCache *, double m, double U, double V, NativeGas *);