How to save data on disk at given time

General discussion about Elmer
Post Reply
spacedout
Posts: 177
Joined: 30 Mar 2020, 23:27
Antispam: Yes

How to save data on disk at given time

Post by spacedout »

Hi

Because my time step can change all the time, I cannot rely on time step and output intervals. I want to be able save my field variables in say .vtu format for display by Paraview , at specified time values say units of seconds. I dont know if ElmerSolver can handle that. It seems to me it will only call ResultOutputSolver based on a running index whose max value is set by the given output intervals.

Thanks in advance whatever the case may be
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: How to save data on disk at given time

Post by raback »

Hi

For any solver you should be able to device a keyword

Code: Select all

  Exec Condition = Real 
that can be a function of the global variables (time, timestep size,...). The solver is executed only when the values is greater than 0.

-Peter
spacedout
Posts: 177
Joined: 30 Mar 2020, 23:27
Antispam: Yes

Re: How to save data on disk at given time

Post by spacedout »

my variable name is

resetflag

but the parser in ElmerSolver rejected

Exec Condition = Real resetflag

as well as

Exec Condition = Variable resetflag

However from an old (2013) thread

Exec Condition = Equals resetflag

seems to works fine. So I hope this is the correct syntax

Regards
spacedout
Posts: 177
Joined: 30 Mar 2020, 23:27
Antispam: Yes

Re: How to save data on disk at given time

Post by spacedout »

Minor point but I found out that

Exec Condition = Equals resetflag

will execute the solver not only when resetflag is positive but 0 as well
Post Reply