/[ascend]/trunk/models/johnpye/fprops/rundata.h
ViewVC logotype

Diff of /trunk/models/johnpye/fprops/rundata.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2662 by jpye, Fri Jan 18 00:34:51 2013 UTC revision 2680 by jpye, Mon Jan 28 06:30:25 2013 UTC
# Line 29  Data declarations as provided in input f Line 29  Data declarations as provided in input f
29  /* TODO remove this dependency eventually (some helmholtz data objects are not yet being copied into new structures*/  /* TODO remove this dependency eventually (some helmholtz data objects are not yet being copied into new structures*/
30  #include "filedata.h"  #include "filedata.h"
31    
   
32  /** Power terms for phi0 (including polynomial) */  /** Power terms for phi0 (including polynomial) */
33  typedef struct Cp0RunPowTerm_struct{  typedef struct Cp0RunPowTerm_struct{
34      double a;      double a;
# Line 84  typedef union CorrelationUnion_union{ Line 83  typedef union CorrelationUnion_union{
83      /* maybe more later */      /* maybe more later */
84  } CorrelationUnion;  } CorrelationUnion;
85    
86  /* TODO Regarding Cp0Data: some source publications present Cp0 data eg in the  /** All runtime 'core' data for all possible correlations, with exception of
87  form of polynomials etc, and others present phi0 data (nondimensionalised ideal  correlation-type-ID, function pointers and metadata (URLs, publications etc)
88  helmholtz energy). There is a straightforward conversion between the two, see  
89  precalc.c (although that is still incomplete). What is not clear is whether it  TODO FluidData (or PureFluid?) could/should be extended to include the following
90  is better to keep phi0 or cp0 values in the runtime data here. */  frequently-calculated items:
91        - fluid properties at triple point (rhoft, rhogt, pt...)
92        - fluid properties at critical point (hc, ...)
93        - accurate saturation curve data (interpolation/spline/something like that)
94        - solutions of iterative solver results, eg (p,h) pairs.
95    
96  /** All runtime 'core' data for all possible correlations, with exception of correlation-type-ID, function pointers and metadata */  This data would be held at this level unless it is correlation-specific in
97    nature, in which case it would belong in lower-level rundata structures.
98    */
99  typedef struct FluidData_struct{  typedef struct FluidData_struct{
100      /* common data across all correlations */      /* common data across all correlations */
101      double R;     /**< specific gas constant */      double R;     /**< specific gas constant */

Legend:
Removed from v.2662  
changed lines
  Added in v.2680

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22