/[ascend]/branches/jacob/models/johnpye/fprops/mixtures/init_mixfuncs.c
ViewVC logotype

Log of /branches/jacob/models/johnpye/fprops/mixtures/init_mixfuncs.c

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 3084)

Revision 3062 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 14 00:03:58 2015 UTC (3 years, 9 months ago) by jacob
File length: 19207 byte(s)
Diff to previous 3049
Extended dew and bubble-point functions further to check that mixture is not below triple-point conditions (temperature or pressure).

Corrected dew-temperature and bubble-temperature functions to work correctly (at first, these functions tended to wander into the critical region and fail).

Added component-specific property functions in API.


Revision 3049 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 7 00:54:02 2015 UTC (3 years, 9 months ago) by jacob
File length: 19194 byte(s)
Diff to previous 3040
Wrote new (phase-handling) property functions in 'mixture_properties.c'; tested & compared to older (one-phase) preliminary forms of property functions from 'init_mixfuncs.c'.

Tested property functions as created by macro(s) in 'mixture_properties.c' (mathematics are the same for many properties, but I wanted to check that ), for several conditions.

Added property functions to library to find density, internal energy, enthalpy for the whole mixture and mixture phases.


Revision 3040 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 3 16:55:04 2015 UTC (3 years, 9 months ago) by jacob
File length: 19199 byte(s)
Diff to previous 3034
Rewriting mixture property functions to use newer input types that can represent phases accurately, and preliminary testing prior to importing into ASCEND through the library file.

Revised library file 'asc_mixture.c', so now input data passed from ASCEND to the library code is correctly unpacked.


Revision 3034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 29 16:56:09 2015 UTC (3 years, 9 months ago) by jacob
File length: 19079 byte(s)
Diff to previous 3027
Move mixture library file to be in the same folder as all the other FPROPS library files.

ASCEND is importing the final mixture library file fine, but seems to encounter segmentation faults when specifying mixture composition.

Also rearranged some of the generic and phase-equilibrium functions, for more logical organization.


Revision 3027 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 25 04:08:17 2015 UTC (3 years, 10 months ago) by jacob
File length: 21721 byte(s)
Diff to previous 3026
Further work on mixture flash function, and testing at multiple temperatures and pressures


Revision 3026 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 24 16:01:30 2015 UTC (3 years, 10 months ago) by jacob
File length: 21718 byte(s)
Diff to previous 3012
Wrote and tested a stand-alone mixture flash function

Updated command-line messages to consistently provide function name where an error occurs


Revision 3012 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 7 11:15:55 2015 UTC (3 years, 10 months ago) by jacob
File length: 20890 byte(s)
Diff to previous 3003
New version of function to find density from pressure.  This is not working reliably, and will be replaced for the purposes of finding fugacity coefficients with one explicit in compressibility.


Revision 3003 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 4 07:06:23 2015 UTC (3 years, 10 months ago) by jacob
File length: 20875 byte(s)
Diff to previous 3002
Revised of test functions to perform ideal-solution modeling of a mixture.  Added functions to calculate dew-point and bubble-point pressures at a given temperature.


Revision 3002 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 3 04:33:53 2015 UTC (3 years, 10 months ago) by jacob
File length: 20863 byte(s)
Diff to previous 2988
add functions that allow VLE to be performed under ideal-solution conditions: fugacity coefficients, Poynting factors.

Test use in finding saturation conditions for mixtures.


Revision 2988 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 30 04:00:24 2015 UTC (3 years, 10 months ago) by jacob
File length: 21045 byte(s)
Diff to previous 2980
expanded new library file to export mixture functions, and test .a4c file to check that the functions are exported correctly, and receive correct data.

minor changes to <ascend/compiler/instance_enum.h>, adding a few macro definitions of ASCEND data types for library file to be able to mention by name.


Revision 2980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 26 04:35:50 2015 UTC (3 years, 10 months ago) by jacob
File length: 21032 byte(s)
Diff to previous 2975
transferring mixture (ideal-solution) functions to other files for easier maintenance.

wrote preliminary file to export mixture functions for use in ASCEND models


Revision 2975 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 19 23:59:20 2015 UTC (3 years, 11 months ago) by jacob
File length: 24561 byte(s)
Diff to previous 2973
generic secant method now is used for all one-dimensional root-finding

greater convenience in testing system in different ways


Revision 2973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 18 22:23:04 2015 UTC (3 years, 11 months ago) by jacob
File length: 24486 byte(s)
Diff to previous 2970
testing routine to solve vapor-liquid equilibrium condition when defining mixtures; it's giving segmentation faults right now.


Revision 2970 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 18 17:52:43 2015 UTC (3 years, 11 months ago) by jacob
File length: 22353 byte(s)
Diff to previous 2956
last revision before testing VLE routines


Revision 2956 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 11 16:32:35 2015 UTC (3 years, 11 months ago) by jacob
File length: 22361 byte(s)
Diff to previous 2951
convert most solution-property functions to use the mixture structures MixtureSpec and MixtureState

test these mixture structures with ideal and Peng-Robinson models, as well as Helmholtz.  works.


Revision 2951 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 10 05:04:42 2015 UTC (3 years, 11 months ago) by jacob
File length: 18773 byte(s)
Diff to previous 2950
two new root-finding algorithms in test file `init_mix.c'

the test file `gas_const_test.c' merely checks that all gas-constant 
values are consistent when converted from J/kg/K to J/kmol/K.


Revision 2950 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 9 03:57:18 2015 UTC (3 years, 11 months ago) by jacob
File length: 15820 byte(s)
Diff to previous 2948
add functions and macros for better display of results, in preparation for more challenging initial conditions and more robust root-finding algorithms.


Revision 2948 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 5 19:31:23 2015 UTC (3 years, 11 months ago) by jacob
File length: 14431 byte(s)
Copied from: branches/jacob/models/johnpye/fprops/test/init_mixfuncs.c revision 2947
Diff to previous 2947
Corrected errors in how init_mix[1,2] and init_mixture.c/.h compiled under SCons, by shifting files init_mixture.c/.h to a dedicated `mixture' directory.

All `init_mix...' files in /fprops/test have been converted to use init_mixture.c to provide their core functionality.


Revision 2947 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Jun 5 16:29:14 2015 UTC (3 years, 11 months ago) by jacob
Original Path: branches/jacob/models/johnpye/fprops/test/init_mixfuncs.c
File length: 17080 byte(s)
Renamed ideal-solution test files to follow more consistent naming convention

In the future, `init_mix' will be the test file used, and remembering history will be handled with revisions rather than by coping over to new files.  Of course, it is sometimes useful to have several versions simultaneously, to test them side-by-side.

Transferred functions used in `init_mix' to a dedicated file, and function prototypes to dedicated header file, to reduce clutter.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

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