Hi Mark

That sounds great! Did you implement this as part of FPROPS, or 
something new?

I'm not immediately clear why you need matrix operations here. Perhaps 
you could explain that to me. Actually, ASCEND doesn't contain a full 
set of matrix operation routines -- it isn't needed in there. There is 
the fairly extensive sparse matrix code, 'mtx' 
(ascend/linear/mtx_basic.h for example). There is also a small dense 
matrix data structure (ascend/linear/densemtx.h) with a few minor 
operations provided. But if you want complete set of matrix tools, 
consider blas/linpackYou can link to BLAS/LAPACK (dense) or 
csparse/cxsparse (sparse), if you really need those features. We're 
already linking those in ASCEND in some places, in some cases, so it's 
certainly possible.

Regarding the SQLite database idea, you will see lots of data for fluid 
properties currently coded in C structs, for example
http://code.ascend4.org/ascend/trunk/models/johnpye/fprops/fluids/ammonia.c?view=markup

These are the kinds of structures we would need to be able to encode in 
database form. Certainly it's possible, but I think it's going to get 
fairly complex fairly quickly. Another idea I thought of was to use XML 
or some other markup language (YAML? JSON?) as the 'store' for FPROPS 
data, but then to process that down to C code at compile time, so that 
no complicated dependencies in the runtime code are needed.

Another point to raise is that we recently implement TTSE routines for 
FPROPS. This is still alpha, not merged to trunk, but it's an example in 
FPROPS where a *lot* of pre-calculation is required, which can certainly 
be considered for storage in a file or database. Whether SQLite is the 
best option, I couldn't say.

If you would like to add your code to a branch in our svn repo, please 
me know and I can set up a password for you.

Cheers
JP

On 08/11/15 03:11, [email protected] wrote:
> Hi there,
> I managed quite a deal for setting up a PSRK model for ascend.
>
> What's missing?:  Transposing a matrix and multiplying two matrices.
> Has somebody already written some functions for matrix algebra in C and
> wrapped them? Otherwise I will beginn with that the next days by
> following this HOWTO:
> http://ascend4.org/Writing_ASCEND_external_relations_in_C
>
> When the PSRK model finally works I want to set up a SQLite database for
> all the thermodynamic and physical property data by tackling this task:
> http://ascend4.org/Student_Projects#Thermophysical_properties_database
>
> Cheers,
> mark
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Ascend-sim-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ascend-sim-users


------------------------------------------------------------------------------
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users

Reply via email to