Solver activation!

Numerical methods and mathematical models of Elmer
Post Reply
suren
Posts: 18
Joined: 17 Nov 2009, 18:38

Solver activation!

Post by suren »

Hello Elmer Guys,

I understand that there are quite a few options on how and when to activate a solver, by inserting "Exec Solver" command in a relevant solver. "Exec Interval" is also there; but, what interval does it refer to?

In fact, I need to activate/deactivate solver as to the chosen "Timestep Intervals" in Simulation section. Consider the following example,

Code: Select all

Simulation 
   Timestep Intervals(2) = 100 200
   Timestep Sizes(2) = 1 0.5
End
is it possible to activate one solver for the first timestep interval, and the next solver for the second step? If yes, that would save my computational cost considerably!

Thank you,
~sa
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Solver activation!

Post by raback »

Hi suren

I reviewed the code and it was not quite there. The "Exec Interval" was assumed to be of size 1 which means that you could not do as you hoped. I just coded a fix (I hope) so that you could give

Code: Select all

Exec Intervals(2) = 1 0 
in the Solver section. There are also now keyword "Start Time" and "Stop Time" which refer to the physical time and which could also be used to swich between different solvers.

The changes are in rev. 5541 committed just minutes ago.

-Peter
Post Reply