Hi Sri

When working with ASCEND, it has been my experience that it's very
important to build up your model from small, well-tested sub-components.
For example, from your model I can see that you have some sun-position
calculations (I implemented something similar in ASCEND, see
models/johnpye/sunpos.a4c), as well as some heat transfer correlations.

It's not quite clear to me yet what it is that you want to model though
-- is it a linear concentrator of some sort? If so, I suggest you create
an array of finite elements, and allow the ASCEND solver to work out how
to solver all of the elements, rather than writing your own loops. There
is an example of the advection equation to show how 1-D
finite-difference models can be constructed in ASCEND.
http://ascendwiki.cheme.cmu.edu/FOR
http://ascendwiki.cheme.cmu.edu/Worked_examples#Simple_advection_equation

Try to change your model so that it's a 'model of models', built up out
of simpler sub-models. The syntax for this is summarised here:
http://ascendwiki.cheme.cmu.edu/Object-oriented_modelling

I hope that this helps a little. If you describe what you are trying to
do in a little more detail, I might be able to give some more assistance.

Cheers
JP

T.Sri Hari Vikram wrote:
> SRI:
>
> Dear John,
>
> Please find the ASCEND file and MATLAB file enclosed. The reason why
> we need to put eqns. in METHODS is, looping(while,for/do..) works only
> in  methods..
> (Note: We are using Tcl/Tk GUI)
>
> Thanks,
> T.Sri Hari Vikram
>

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

Reply via email to