Search found 103 matches

by spacedout
30 Jan 2021, 21:48
Forum: General
Topic: how to restart under mpi
Replies: 7
Views: 1212

Re: how to restart under mpi

It would be nice though if we could dispense with .result files altogether as they become ever larger as the simulation progresses since data from subsequent timesteps get appended to it. The .vtu contain the same information but as individual files, one for each timestep. It is more burdensome to o...
by spacedout
30 Jan 2021, 07:11
Forum: General
Topic: how to restart under mpi
Replies: 7
Views: 1212

Re: how to restart under mpi

Well from trial and error, I found out that only

Restart File = "case.result"

is accepted by ElmerSolver_mpi
by spacedout
30 Jan 2021, 00:30
Forum: General
Topic: how to restart under mpi
Replies: 7
Views: 1212

how to restart under mpi

Hi again if I ran mpirun -np 4 ElmerSolver_mpi myfile.sif up to the allotted time limit on the system, can i restart the simulation from the generated .vtu files with a single line Restart File = "case_t1000.pvtu (assuming my latest saved time index was 1000 for the sake of example) or do I hav...
by spacedout
30 Jan 2021, 00:11
Forum: General
Topic: How does ElmerSolver_mpi handle serial solvers
Replies: 3
Views: 823

Re: How does ElmerSolver_mpi handle serial solvers

Actually I umwittingly lied. I do change field values at certain times: SUBROUTINE MySolver( Model,Solver,dt,TransientSimulation ) USE DefUtils ........ Print *, "voltage is", voltage IF(t==0)THEN CALL initaveEHD() open(1, file = 'timedata.txt', status = 'replace') ENDIF CONTAINS SUBROUTIN...
by spacedout
29 Jan 2021, 06:43
Forum: General
Topic: How does ElmerSolver_mpi handle serial solvers
Replies: 3
Views: 823

How does ElmerSolver_mpi handle serial solvers

Good evening

Two of my solvers work on global variables only and also open and write to files on disk. If I have 4 partitions, I dont want ElmerSolver_mpi to call them 4 times per time step and I dont know if it is possible to call them only once per time step.

Thanks anyhow
by spacedout
24 Jan 2021, 04:23
Forum: General
Topic: unitialized time step size
Replies: 3
Views: 780

Re: unitialized time step size

I thought initial and boundary conditions were meant to be used for field variables only. Following your suggestion, I initialized deltaT in the initial condition section and the code now works just fine.
Great thanks,
Marc
by spacedout
24 Jan 2021, 02:29
Forum: General
Topic: How to save data on disk at given time
Replies: 3
Views: 781

Re: How to save data on disk at given time

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
by spacedout
23 Jan 2021, 19:41
Forum: General
Topic: unitialized time step size
Replies: 3
Views: 780

Re: unitialized time step size

Correction: The error is not segmentation fault but ERROR:: ExecSimulation: Timestep smaller than epsilon: 0.000E+00 STOP 1 Sorry about that. But the problem remains the same and could be solved by replacing Real MATC "tx(0)" with for example Real MATC "tx(0)+1" in which case the...
by spacedout
23 Jan 2021, 05:24
Forum: General
Topic: unitialized time step size
Replies: 3
Views: 780

unitialized time step size

If I set Timestep Size = Variable deltaT Real MATC "tx(0)" in the Simulation section of the .sif, ElmerSolver immediately gives a segmentation fault. A printout of dt from the first solver called (say MySolver) shows that dt is 0, where dt is a parameter in SUBROUTINE MySolver( Model,Solve...
by spacedout
23 Jan 2021, 05:14
Forum: General
Topic: How to save data on disk at given time
Replies: 3
Views: 781

Re: How to save data on disk at given time

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