[esp-r] Re: simulation toggles from command line (implicit explicit schemes)

Jon Hand jon at esru.strath.ac.uk
Fri Aug 2 10:59:03 BST 2013


Further thoughts....

If this is a one-off test then why not just find the variable that specified the degree of implicitness
in the bps code and alter this to a different value and try it out.  When you are done with the test
the re-constituted the original value.

There are potentially dozens of simulation parameters that can be set in the interface of bps. I
suspect that supporting dozens of options via command line would not scale.

Some of existing parameters (like telling esp-r that solar data is hourly or half-hourly based is 
included as a tag:data in the model cfg file.  There are also the standard parmeters like simulation 
period, pre-sim days, timesteps that are also held in the model cfg file.  Recording a preference
for implicitness seems no different.

How about we think of likely-useful directives for the model cfg file, Agree on a syntax
for such directives and identify good examples of how directives are handled currently.

-Jon Hand
________________________________________
From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] On Behalf Of Andrew Cowie [cn06arc at leeds.ac.uk]
Sent: 02 August 2013 10:34
To: Sébastien Brideau; esp-r at lists.strath.ac.uk
Subject: [esp-r] Re: simulation toggles from command line (implicit     explicit        schemes)

Hi Sébastien,

Im not 100% sure, but from my reading of the ESP-r methodology I believe the solvers are programmed in a Crank-Nicholson scheme.  To use a fully implicit scheme could introduce numerical instability which the solvers may be ill equipped to handle.  Regardless, it seems that you have identified the variable in the code that you need to change in order to do this.  If there is not already a way to do this on the command line, it is not difficult to add command line arguments to the bps module in the file startup.F.  All you would need to do then is put a flag in a COMMON block and override the existing code that sets this variable.  I would advise caution however, as my experience of fiddling with the solvers is it tends to have unexpected results!

There is a file distributed with the source code, I think somewhere in the manual directory, called something like command_line_hints if memory serves.  If there is an existing way to do what you want to do, it will probably be in there.

Regards,
Andy Cowie
________________________________________
From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] On Behalf Of Sébastien Brideau [sebastien.brideau at gmail.com]
Sent: 02 August 2013 02:20
To: esp-r at lists.strath.ac.uk
Subject: [esp-r] simulation toggles from command line (implicit explicit        schemes)

Hi all,

Is anybody aware of a way to call the bps with a “flag” that would override the default setting for implicit/explicit scheme?  I want to run a simulation where the plant is solved fully implicitly (variable impexp = 1).

I am asking because I want to run a ESP-r TRNSYS co-simulation and the input file to the co-simulator requires the command to call the bps.  Can’t do it with the GUI.

Thanks for any help,

Sébastien Brideau
sebastien.brideau at gmail.com<mailto:sebastien.brideau at gmail.com>


_______________________________________________
esp-r mailing list
esp-r at lists.strath.ac.uk
http://lists.strath.ac.uk/mailman/listinfo/esp-r



More information about the esp-r mailing list