Save first time step : [ResultOutputSolver]

Numerical methods and mathematical models of Elmer
Post Reply
PierreAntonetti
Posts: 22
Joined: 06 Oct 2023, 14:31
Antispam: Yes

Save first time step : [ResultOutputSolver]

Post by PierreAntonetti »

Hi,

I noticed ResultOutputSolver module doesn't save the first time (t=0) even if I specify exec solver=always.
I want to save the initial value of my temperature (cause the profile is given by a MATC expression)

Thks.
kevinarden
Posts: 2316
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Save first time step : [ResultOutputSolver]

Post by kevinarden »

I don't think Elmer does a time 0 calculation, the first step is 0+timestepsize. You can do a steady state analysis with a constant temperature then restart into a transient. Or setup the MATC such that time step 1 is the same as zero.

Temperature = Variable Time
Real MATC
0.0 100.0
0.1 100.0
0.2 200.0
0.3 300.0
End
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Save first time step : [ResultOutputSolver]

Post by raback »

Hi

If you just want to check for testing how your vtu output looks like then any solver can take "exec solver = before simulation" or "before timestep".

If you have the vtu just defined in Simulation section you can pass on the info as "vtu: exec solver= before timestep". The keyword with namespace "vtu:" will be internally copied.

-Peter
PierreAntonetti
Posts: 22
Joined: 06 Oct 2023, 14:31
Antispam: Yes

Re: Save first time step : [ResultOutputSolver]

Post by PierreAntonetti »

Hello Peter,

Thanks for your answer, that's the solution have been using but the first is not registered in the pvd collection file in case.

Best regards.
Post Reply