Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2009-04-06 08:45:07

luke_t
Member
Registered: 2009-04-06
Posts: 5

how to write out results after every solved increment

Hi everybody

i'm trying to perform a nonlinear analysis in code aster. the problem concerns elastoplastic state in metalpart. i've defined stress-strain curve for material ( part) to be analyzed and divided the time of solution  in 10 increments . the problem i'm describing is quite time consuming, beacouse the model consists of 140 tsd quadratic elements ( with 220 tsd nodes).
as ist turned out the analysis took over 5 days! and i did't get any results because of the programs premature termination.
i 've defined 50 hours of cpu time in ASTK but it was still to less.
acctualy i'd like to ask You about one thing: Is it possible in code aster that it writes (readable) results after every succesfully performed iteration? suppose the model is so defined that solution , because of the conditions taking place in model, cannot be brought to end. it seems to be strange that it couldn't be possible to get any solution in such a case.
i've noticed that aster performs its work step-by-step according to the sequence of commands given in .comm file and when stat_non_lin is not done it won,t go any further.

i'd like to ask You if there is any command or some trick how to get partial results while the analysis is running ( acctualy when its not completed).

honestly it's not my last question but i think it's enough for the first time;)

thanks a lot for your answers ( in advance)

regards

Lucas

Offline

#2 2009-04-06 12:48:44

Ect
Member
From: Switzerland
Registered: 2008-05-15
Posts: 96

Re: how to write out results after every solved increment

Hello,

You may try to use python's error handling  (don't forget DEBUT(PAR_LOT='NON',); )

try:
        SOLUTION=STAT_NON_LINE(
                      .....
                      ARCHIVAGE=_F(PAS_ARCH=1,),
                      .....
                );
except aster.NonConvergenceError, message:
        print 'Convergence not reached. Exiting...'
except aster.MatriceSinguliereError, message:
        print 'Singular matrix. Exiting...'
except aster.error, message:
        print 'Error raised. Exiting...'

this way if STAT_NON_LINE fails Aster is still able to proceed and to save the base (don't forget to save the base in ASTK). Then use a separate post-processing .comm with POURSUITE() to load the base and extract your results.

Hope this helps.

Offline

#3 2009-04-06 13:07:40

luke_t
Member
Registered: 2009-04-06
Posts: 5

Re: how to write out results after every solved increment

hi!

thanks a lot for your reply

although it seems a bit complicated to me  right now, i'll try to handle it somehow

greetings

Offline

#4 2009-04-06 14:21:53

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 2,775

Re: how to write out results after every solved increment

Hi,

This is what the database is for in Code_Aster. One defines a "base" type field in ASTK with R and C cases ticked in order to retrieve a database that can be used later to analyze the results or continue a computation.
In the latest version 9.4 of Code_Aster, you do not need anymore to be concerned with "exceptions" since every error will lead to Code_Aster saving the database (provided you define the correct field in ASTK).

Regarding your particular calculation, what happened at the end of the allocated time, did Code_Aster simply stopped or did it say there was no CPU time available and that it was saving a database ?

TdS

Offline

#5 2009-04-06 15:04:28

Jacopo
Member
From: Colle di Val d'Elsa, Italy
Registered: 2008-02-05
Posts: 559

Re: how to write out results after every solved increment

Hi luke,
use pousuite isn't so difficult, I attached a simple .comm where I use poursuitè command, try to study this simple .comm.
Whsn you creta .astk is importatnt that you use the .base (not compressed) used in the calculation.

Ciao
Jacopo


Attachments:
POURSUITE_COMMAND.rar, Size: 1.23 KiB, Downloads: 305

Salome-Meca 2016 (Intel Xeon 8 Core x 2 RAM 32GiB) Ubuntu 16.04 LTS

Offline

#6 2009-04-07 08:09:36

luke_t
Member
Registered: 2009-04-06
Posts: 5

Re: how to write out results after every solved increment

Hi Thomas and Jacopo

thanks very much for your reply

i'll try to give some more details about my particular problem, especially in context of Thomas' question. i think i'll place the attachment ( my model and associated files files) on the forum.
one thing that makes me troubled ist how to interpret the time taken by aster to solve the task. i defined 50 hours for solution, and it actually took 6 days! but according to mess file infos the time of all operations performed during the run adds up to ca. 180000sek ( 50 hours). does it mean that all remaining time was consumed for data traffic  form memory to disc and reverse? can somebody enlighten me how to understand whats going on?
as it can be seen form my mess file , after the 50 hours have passed aster run was terminated. the base was created . there are 2 files in there :glob.1.gz ( is about 750 mb big) and pick.1.gz . so You mean a can retrieve results form those files?  next question arises, about poursuite procedure: according to what i see in Jacopo's file , after poursuite command comes next one ordering continuation of solution ( from the place it was interrupted?) ? but can i really directly extract existing results form that database , regardless of how many solved increments it contains. or it is necessary to force program to complete ordered , say, 10 increments in order to be able to obtain results?

before i'll try to tamper with the base, i'd like to get some advice from more experinced users;)

greetings
Lukas

Offline

#7 2009-04-07 08:14:29

luke_t
Member
Registered: 2009-04-06
Posts: 5

Re: how to write out results after every solved increment

sorry, forgot to add attachment

Offline

#8 2009-04-07 08:17:54

luke_t
Member
Registered: 2009-04-06
Posts: 5

Re: how to write out results after every solved increment

once again, something went wrong..

is there any limit for file size to be attached?

cheers


Attachments:
plas.tar.gz, Size: 18.69 KiB, Downloads: 160

Offline

#9 2009-04-08 16:38:53

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 2,775

Re: how to write out results after every solved increment

luke_t wrote:

does it mean that all remaining time was consumed for data traffic  form memory to disc and reverse? can somebody enlighten me how to understand whats going on?

Yes indeed. Here you consumed as much as 12514sec of system time (meaning system call such as disk access were needed), since system resources are shared it might take longer to access them especially when you are using your local machine (instead of a dedicated cluster).

luke_t wrote:

You mean a can retrieve results form those files

Of course ! As I said this is the whole point of saving a database. You can continue a non-linear computation just by supplying the resulting concept from the previous aborted calculation (it will use by default the last converged time step to start, meaning it will take the displacement, the stress and internal variables).

luke_t wrote:

is there any limit for file size to be attached?

2 MB max.

TdS

Offline

Board footer