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

You are not logged in.

#1 Re: Code_Aster usage » Display all the information in the log file. » 2020-06-01 07:24:24

Thank you, Anirudh. Using the time module of python is a good idea.

#2 Code_Aster usage » Display all the information in the log file. » 2020-05-30 19:41:41

chenghui62000
Replies: 2

Recently, I run a simulation with many time steps. In the time consumptions of each command are listed at the end.
See here:

 ********************************************************************************
 * COMMAND                  :       USER :     SYSTEM :   USER+SYS :    ELAPSED *
 ********************************************************************************
 * init (jdc)               :   33743.56 :     317.81 :   34061.37 :   32976.91 *
 *  . compile               :       0.00 :       0.00 :       0.00 :       0.00 *
 *  . exec_compile          :   33743.26 :     317.79 :   34061.05 :   32976.60 *
 * DEBUT                    :       0.02 :       0.04 :       0.06 :       0.06 *
 * INCLUDE                  :       0.01 :       0.00 :       0.01 :       0.01 *
 * LIRE_MAILLAGE            :       0.15 :       0.02 :       0.17 :       0.18 *
 * AFFE_MODELE              :       0.01 :       0.00 :       0.01 :       0.01 *
 * AFFE_CARA_ELEM           :       0.01 :       0.00 :       0.01 :       0.00 *
 * DEFI_MATERIAU            :       0.00 :       0.00 :       0.00 :       0.00 *
 * AFFE_MATERIAU            :       0.00 :       0.00 :       0.00 :       0.01 *
 * AFFE_CHAR_MECA           :       0.01 :       0.00 :       0.01 :       0.01 *
 * AFFE_CHAR_MECA           :       0.01 :       0.00 :       0.01 :       0.01 *
 * AFFE_CHAR_MECA           :       0.00 :       0.01 :       0.01 :       0.01 *
 * AFFE_CHAR_MECA           :       0.01 :       0.00 :       0.01 :       0.00 *
 * DEFI_LIST_REEL           :       0.00 :       0.00 :       0.00 :       0.00 *
 * DEFI_LIST_INST           :       0.03 :       0.00 :       0.03 :       0.03 *
 * INCLUDE                  :       2.15 :       0.04 :       2.19 :       1.33 *
 * INCLUDE                  :       4.25 :       0.50 :       4.75 :       4.13 *
 * INCLUDE                  :       4.01 :       0.11 :       4.12 :       3.78 *
 * INCLUDE                  :       4.61 :       0.10 :       4.71 :       4.43 *
 * INCLUDE                  :       5.18 :       0.05 :       5.23 :       4.96 *
 * INCLUDE                  :       3.67 :       0.07 :       3.74 :       3.48 *
 * INCLUDE                  :       3.60 :       0.05 :       3.65 :       3.45 *
 * INCLUDE                  :       3.77 :       0.04 :       3.81 :       3.56 *
 * INCLUDE                  :       4.05 :       0.05 :       4.10 :       3.78 *
 * INCLUDE                  :       4.00 :       0.05 :       4.05 :       3.72 *
 * INCLUDE                  :       3.72 :       0.04 :       3.76 :       3.46 *
 * INCLUDE                  :       4.03 :       0.05 :       4.08 :       3.65 *
 * INCLUDE                  :       4.25 :       0.08 :       4.33 :       3.81 *
......

......
 * INCLUDE                  :       4.53 :       0.07 :       4.60 :       4.27 *
 * INCLUDE                  :       4.21 :       0.04 :       4.25 :       3.94 *
 * INCLUDE                  :       4.73 :       0.06 :       4.79 :       4.41 *
 * INCLUDE                  :       4.48 :       0.07 :       4.55 :       4.10 *
 * INCLUDE                  :       4.21 :       0.05 :       4.26 :       4.05 *
 * INCLUDE                  :       4.39 :       0.08 :       4.47 :       4.06 *
 * INCLUDE                  :       4.26 :       0.05 :       4.31 :       3.85 *
 * INCLUDE                  :       4.34 :       0.06 :       4.40 :       4.03 *
 * INCLUDE                  :       4.45 :       0.04 :       4.49 :       3.99 *
 * INCLUDE                  :       4.44 :       0.04 :       4.48 :       4.03 *
 * INCLUDE                  :       4.05 :       0.04 :       4.09 :       3.69 *
 * INCLUDE                  :       4.13 :       0.04 :       4.17 :       3.83 *
 * INCLUDE                  :       4.49 :       0.06 :       4.55 :       4.16 *
 *  . part Superviseur      :     786.20 :       2.96 :     789.16 :     789.53 *
 *  . part Fortran          :    1091.80 :      21.03 :    1112.83 :    1002.91 *
 * > 500 commandes...       :   31858.76 :     293.75 :   32152.51 :   31177.83 *
 ********************************************************************************
 * TOTAL_JOB                :   33743.55 :     317.80 :   34061.35 :   32976.89 *
 ********************************************************************************

The problem is: Can it show the time consumption of all the command without the omitting?

Best regards,
Hui Cheng

#3 Salome-Meca usage » Show the cable element with different diameters » 2020-03-02 17:22:59

chenghui62000
Replies: 1

Dear all,

I have a question for the postprocessing in ParaVis. In my structural analysis, I used different section areas for different cable (and beam). Can I show elements with the corresponding width (thickness)?

Thank you very much in advance.
Hui Cheng

#4 Code_Aster usage » Large simulation setting » 2020-03-02 08:05:25

chenghui62000
Replies: 0

Dear all,
I am running a large simulation (960 nodes, 1824 elements) using DYNA_NON_LINE. After 5days running, it stops with following error message:

   ! <EXCEPTION> <JEVEUX_62>                                                   !
   !                                                                           !
   !  Erreur lors de l'allocation dynamique. Il n'a pas été possible d'allouer !
   !  une zone mémoire de longueur 0 Mo, on dépasse la limite maximum          !
   !  fixée à 120 Mo et on occupe déjà 120 Mo.                                 !
   !  La dernière opération de libération mémoire a permis de récupérer 0 Mo.

Should I change

 A memjeveux 637.75

to a larger number?

Best regards,
Hui Cheng

#5 Re: Code_Aster usage » [SOLVED] How to import my own python module into .comm file » 2020-02-24 21:57:34

The problem comes from your news.py
You should use the python standard to write.
Try to run python news.py in your terminal until no error message coming out. And then import this into your main comm file.

By the way, why won't you combine the two file as only one comm file? I cannot see there is any necessary to run the simulation by using "import news as hd"

#6 Re: Code_Aster usage » [SOLVED] How to import my own python module into .comm file » 2020-02-21 17:35:31

Hi sameer21101970,

You need to add <<<PAR_LOT='NON'>>> into you DEBUT, like this:

import sys
sys.path.append("/home/sameer/Desktop/LoopPython")
import news as hd
DEBUT(PAR_LOT='NON')

Best regards,
Hui Cheng

#7 Re: Code_Aster usage » Python Loop » 2020-02-21 17:26:25

change mater(i)  to mater[ i ]and try again.

#8 Re: Code_Aster usage » Dynamic simulation with two meshes stacking together » 2019-10-22 10:29:38

To dezsit,
Yes, it is a complex simulation. I have tried with "ASSE_MAILLAGE", but Code_Aster seems not like it.
I might need to assign the name of the connected parts with GROUP_MA, instead of GROUP_NO.


To Anirudh,
I have subscribed your channel for a long time smile. Your posed videos are brilliant. I think using the python loop to keep the same DDL of the corresponding nodes might work for this simulation. Could you please give me a hint on how to set the same DDL?

Best regards,
Hui

#9 Re: Code_Aster usage » Dynamic simulation with two meshes stacking together » 2019-10-21 17:18:04

The input files I used in this simulation are attached here.

#10 Re: Code_Aster usage » Dynamic simulation with two meshes stacking together » 2019-10-21 17:13:56

To dezsit,
Yes, I have included the conte in my analysis as the following code:

# add the loads
loadr=[]
loadr.append( _F(CHARGE=fix), )
loadr.append( _F(CHARGE=selfwigh), )
loadr.append( _F(CHARGE=buoyF), )
loadr.append( _F(CHARGE=load0), )
loadr.append( _F(CHARGE=buoyF2), )
loadr.append( _F(CHARGE=conte), )
for i in range (1,len(Fnh)+1):
    loadr.append( _F(CHARGE=l[i],),)
...
# conduct dynamic analysis
resn = DYNA_NON_LINE(CARA_ELEM=elemprop,
                        CHAM_MATER=fieldmat,
                        reuse=resn,
                    ETAT_INIT=_F(EVOL_NOLI=resn),
                    COMPORTEMENT=(_F(DEFORMATION='GROT_GDEP',
                                    GROUP_MA=('twines', ),
                                    RELATION='CABLE'),
                                  _F(#DEFORMATION='GROT_GDEP',
                                    GROUP_MA=('bottomring', 'topring','allsurface'),
                                    RELATION='ELAS')
                                  ),
                   CONVERGENCE=_F(ITER_GLOB_MAXI=1000,
                                  RESI_GLOB_RELA=2e-05),
                    EXCIT=(loadr),
                    OBSERVATION=_F(GROUP_MA=('twines','allsurface' ),
                                    NOM_CHAM='DEPL',
                                    NOM_CMP=('DX','DY','DZ'),
                                    INST=k+0.10,
                                    OBSE_ETAT_INIT='NON'),
                    SCHEMA_TEMPS=_F(FORMULATION='DEPLACEMENT',
                                   SCHEMA='HHT',
                                    ALPHA=-0.1,
                                   ),
                                   #add damping stablize the oscilations Need to study in the future
                    INCREMENT=_F(LIST_INST=times,INST_FIN=(1+k)*dt),
                    MODELE=model,
                    )

However, I am not sure whether it is right in "conte= AFFE_CHAR_MECA(...)"

#11 Code_Aster usage » Dynamic simulation with two meshes stacking together » 2019-10-20 18:42:06

chenghui62000
Replies: 7

Dear all,

First of all, I would like to thank all the people in this forum to help me with my simulations with Code_Aster.

Without your help, I am not able to do the dynamic analysis of a super flexible structure, fish cage. You can see my youtube video here by searching "code_aster fish cage"

Now, I encounter new problems. In the new model, the flexible fishnet is attached to a fixed structure. the net and the fixed structure are modelled with two mesh. According to Jean_Pierre Aubry's book  (Chapter12) , I think the two mesh can be glued together in Coed_Aster by the following code:

# import the two meshes
mesh = LIRE_MAILLAGE(UNITE=20)
cyli = LIRE_MAILLAGE(UNITE=21)
mesh1 = ASSE_MAILLAGE(
  MAILLAGE_1=mesh,
  MAILLAGE_2=cyli,
  OPERATION='SUPERPOSE'
)
...
# glue the two meshes by the nodes' names
conte= AFFE_CHAR_MECA(LIAISON_GROUP=(
                                     _F(GROUP_NO_1='cagefixtop',
                                        GROUP_NO_2='Cylcagetop',
                                        DDL_1=('DX','DY','DZ'),
                                        DDL_2=('DX','DY','DZ'),
                                        COEF_MULT_1=(1.0,1.0,1.0),
                                        COEF_MULT_2=(-1.0,-1.0,-1.0),
                                        COEF_IMPO=0.0,
                                        ),
                                    ),
                      MODELE=model)

The corresponding meshs are presented in the following figure.
mesh figure

But the results seem not to succeed. see the following figure:
results

I have check some other posts and the training material but did not get enough information.

Could you please give your suggestings?

Thank you very much.

Hui Cheng

#12 Re: Code_Aster usage » EXTR_TABLE still works to extract data from the Post_Releve_T table? » 2019-09-12 13:34:12

you can use  DEBUT(PAR_LOT='NON')  instead of DEBUT()
and try again

#13 Re: Code_Aster usage » EXTR_TABLE still works to extract data from the Post_Releve_T table? » 2019-09-11 10:34:06

Can you upload your mess file to make the question clearer?
For me, I have used the table.EXTR_TABLE() in my study successfully.
Best regards,
Hui Cheng

#14 Re: Code_Aster usage » strange warning with AFFE_CHAR_MECA_F » 2019-08-06 15:55:49

I am not sure about the problems but is the following in your code right?

PRES==phyd_fz

Hui

#15 Re: Code_Aster usage » How to switch off the log file writing on disk » 2019-08-01 17:37:02

Thank you very much.
It makes my program better.
Hui Cheng

#16 Re: Code_Aster usage » How to switch off the log file writing on disk » 2019-07-31 21:20:11

This question has been solved, but I have found that the "INCLUDE" will be removed in version 15. What a pity.
By the way, do you know how to turn off the Alarm message? I found that it always reminds as following:

   !--------------------------------------------------------------------------------!
   ! <A> <SUPERVIS_25>                                                              !
   !                                                                                !
   ! L'usage de la commande INCLUDE n'est pas conseillé.                            !
   !                                                                                !
   ! Une étude utilisant la commande INCLUDE ne peut pas être éditée en mode        !
   ! graphique dans AsterStudy. Il est alors conseillé de remplacer INCLUDE par     !
   ! un "Stage" supplémentaire.                                                     !
   !                                                                                !
   ! De plus, cette commande ne sera plus disponible à partir de la version 15.     !
   ! S'il s'agit d'exécuter des commandes Python, il sera alors possible d'utiliser !
   ! l'instruction "import".                                                        !
   !                                                                                !
   !                                                                                !
   ! Ceci est une alarme. Si vous ne comprenez pas le sens de cette                 !
   ! alarme, vous pouvez obtenir des résultats inattendus !                         !
   !--------------------------------------------------------------------------------!
   

Thank you so much
Hui Cheng

#18 Re: Code_Aster usage » [SOLVED]IOError: [Errno 28] No space left on device » 2019-07-15 10:24:18

I think I have solved this question (at least partly).
I can change the tmp folder or increase the size of tmp.
Or delete the fort.6 in the tmp working folder to save the space.

#19 Re: Code_Aster usage » Question on how to improve the force-assignment efficiency » 2019-07-15 10:21:40

After months of practices, I still have the question on this post. A video on my Youtube channel shows my question more vividly.

https://www.youtube.com/watch?v=iNZzWCF7OZs&t=1s 

During the whole simulation, The below instruct uses most of the computational time. Because it only one core to do the forces assignment.

for i in range (1,len(Fnh)+1):    % len(Fnh)=1512
        grpno = 'node%01g' %i
        l[i]=AFFE_CHAR_MECA( FORCE_NODALE=_F(GROUP_NO= (grpno),
                             FX= Fnh[i-1][0],
                             FY= Fnh[i-1][1],
                             FZ= Fnh[i-1][2],),
                             MODELE=model)

#20 Re: Code_Aster installation » [SOLVED]Error reported in the MED library » 2019-07-15 10:11:06

Hi, this problem is solved by installing all the Prerequisites on the below website.

https://code-aster.org/V2/spip.php?article273 

#21 Re: Code_Aster usage » [SOLVED]How to run ASTK independently? » 2019-07-15 10:03:54

This question is solved. See the below video:

https://www.youtube.com/watch?v=iNZzWCF7OZs 

#22 Re: Code_Aster usage » How to switch off the log file writing on disk » 2019-07-15 10:00:38

Hi Jean Pierre,
I could not find the id=23083 post on this forum. Could you please share the link here?
Thank you very much for the knowledge sharing in your book chapter 17-19. It is very useful.
I will try this INCLUDE method for my cases.

Best regards,
Hui Cheng

#23 Re: Code_Aster usage » How to switch off the log file writing on disk » 2019-07-14 22:18:42

Hi Jean Pierre,

Thank you for your reply. It is very exciting for me. Could you please give more hints for that? For example, the id=23083 means? and how to use INCLUDE  in the main comm file?

Thank you very much!
Hui Cheng

#24 Re: Code_Aster usage » How to switch off the log file writing on disk » 2019-07-14 13:25:11

Dear all,
I have found that I can delete the fort.6 file in manually and it won't come out.
Because my calculation uses a python loop to assign the forces on a large number of nodes. The log file could be extremely huge.  When I run several cases simultaneously the disk will be eaten up.

By the way, removing the fort.6 file manually can be a (possible) solution to my previous question:

https://www.code-aster.org/forum2/viewtopic.php?id=24208

#25 Re: Code_Aster usage » use python loop to parse values in ORIENTATION concept » 2019-07-14 13:10:18

Hi, your post is very interesting to me.

But, I think I did not understand your question very well.
As far as I know, you might need a python loop to assign the different values.

Best regards,
Hui Cheng