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

You are not logged in.

#1 Salome-Meca installation » Accessing Windows files in the WSL terminal » 2022-08-09 09:21:17

rmoortgat
Replies: 0

Dear all,

when I try to save or open a study file from within Salome with p.e. mnt/c/studydir/Studyx, I get "The directory does not exist".
However I can open the directory without a problem from command line the terminal.

Roger

#2 Re: Code_Aster usage » <SOLVED> Le champ de type DEPL n'existe pas » 2022-08-03 08:03:42

i guess you may owe me some pints of the numerous belgian beers.

Of course, it would be my pleasure and at the same time we could have a chat about the good old days when you could recognize an engineer by the slide rule in his breast pocket.

Roger

#3 Re: Code_Aster usage » <SOLVED> Le champ de type DEPL n'existe pas » 2022-08-03 07:46:34

J'ai ajouté MODELE=model au STAT_NON_LINE et maintenant ça marche.

Roger

#4 Re: Code_Aster usage » <SOLVED> Le champ de type DEPL n'existe pas » 2022-08-02 15:43:10

Sorry, vous avez raison.
Voici le bon fichier.

DEBUT()

MESH_A = LIRE_MAILLAGE(FORMAT='MED',
                       UNITE=20)

mesh = CREA_MAILLAGE(CREA_MAILLE=(_F(GROUP_MA=('Avx', ),
                                     NOM='Avx_1',
                                     PREF_MAILLE='A'),
                                  _F(GROUP_MA='Avz',
                                     NOM='Avz_1',
                                     PREF_MAILLE='B'),
                                  _F(GROUP_MA='Ahx',
                                     NOM='Ahx_1',
                                     PREF_MAILLE='C'),
                                  _F(GROUP_MA='Ahy',
                                     NOM='Ahy_1',
                                     PREF_MAILLE='D')),
                     MAILLAGE=MESH_A)

model = AFFE_MODELE(AFFE=(_F(GROUP_MA=('beton', 'hor', 'last', 'vert'),
                             MODELISATION='DKT',
                             PHENOMENE='MECANIQUE'),
                          _F(GROUP_MA=('Ahx_1', ),
                             MODELISATION='GRILLE_EXCENTRE',
                             PHENOMENE='MECANIQUE'),
                          _F(GROUP_MA=('Ahy_1', ),
                             MODELISATION='GRILLE_EXCENTRE',
                             PHENOMENE='MECANIQUE'),
                          _F(GROUP_MA=('Avx_1', ),
                             MODELISATION='GRILLE_EXCENTRE',
                             PHENOMENE='MECANIQUE'),
                          _F(GROUP_MA=('Avz_1', ),
                             MODELISATION='GRILLE_EXCENTRE',
                             PHENOMENE='MECANIQUE')),
                    MAILLAGE=mesh)

elemprop = AFFE_CARA_ELEM(COQUE=(_F(EPAIS=0.16,
                                    GROUP_MA=('hor', ),
                                    VECTEUR=(0.0, 1.0, 0.0)),
                                 _F(EPAIS=0.12,
                                    GROUP_MA=('vert', ),
                                    VECTEUR=(0.0, 0.0, 1.0))),
                          GRILLE=(_F(EXCENTREMENT=0.0,
                                     GROUP_MA=('Ahx_1', ),
                                     SECTION=0.000523,
                                     VECT_1=(1.0, 0.0, 0.0)),
                                  _F(EXCENTREMENT=0.0,
                                     GROUP_MA=('Ahy_1', ),
                                     SECTION=0.001863,
                                     VECT_1=(0.0, 1.0, 0.0)),
                                  _F(EXCENTREMENT=0.0,
                                     GROUP_MA=('Avx_1', ),
                                     SECTION=0.00523,
                                     VECT_1=(1.0, 0.0, 0.0)),
                                  _F(EXCENTREMENT=0.0,
                                     GROUP_MA=('Avz_1', ),
                                     SECTION=0.001863,
                                     VECT_1=(0.0, 0.0, 1.0))),
                          MODELE=model)

#5 Code_Aster usage » <SOLVED> Le champ de type DEPL n'existe pas » 2022-08-02 13:20:52

rmoortgat
Replies: 5

Hello,

after each step of the nonlin calculation I get "Champ stocké <DEPL>" but at the end i get "Le champ de type DEPL n'existe pas".

Kind Regards

Roger

#6 Re: Code_Aster usage » <SOLVED> Hollow cylinder: matrice singuliere error » 2022-07-27 19:39:54

Did you restrain your model from moving in X and Y direction?

Roger

#7 Re: Code_Aster usage » <SOLVED> Le type de matrice tangente choisi <> est incompatible » 2022-07-22 15:29:19

IMPLEX + grille_membrane only works with COMPORTEMENT ELAS.

Roger

#8 Code_Aster usage » <SOLVED> Le type de matrice tangente choisi <> est incompatible » 2022-07-22 10:10:59

rmoortgat
Replies: 1

Le type de matrice tangente choisi <> est incompatible avec le comportement <IMPLEX>

Any idea how to solve this?
No idea where to change type of matrix.

resnonl = STAT_NON_LINE(CARA_ELEM=elemprop,
                        CHAM_MATER=fieldmat,
                        COMPORTEMENT=(_F(DEFORMATION='PETIT',
                                         GROUP_MA=('wap_boven_x', 'wap_boven_z', 'wap_onder_x', 'wap_onder_y'),
                                         ITER_INTE_MAXI=20,
                                         RELATION='GRILLE_ISOT_LINE'),
                                      _F(DEFORMATION='PETIT',
                                         GROUP_MA=('L_element', ),
                                         ITER_INTE_MAXI=20,
                                         RELATION='ENDO_ISOT_BETON')),
                        EXCIT=(_F(CHARGE=load,
                                  FONC_MULT=FMULT),
                               _F(CHARGE=steun)),
                        INCREMENT=_F(LIST_INST=ZLIST),
                        METHODE='IMPLEX',
                        MODELE=model)

Roger

#9 Re: Code_Aster usage » inconsistant mesh SOLVED » 2022-07-12 08:18:20

Thank you all for your patience with my beginner mistakes.
I got it running.
There was still another mistake: CARA_ELEM was missing in the solver command.
Now up to the non linear calculation.

Kind regards,

Roger

#10 Re: Code_Aster usage » inconsistant mesh SOLVED » 2022-07-11 18:04:56

Dear Mr. Aubry,

thank you for your answer.
I made the corrections you suggested.
It is still not working:

Traceback (most recent call last):
  File "fort.1", line 88, in <module>
    MODELE=model)
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Supervis/ExecuteCommand.py", line 172, in run
    return cmd.run_(**kwargs)
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Supervis/ExecuteCommand.py", line 223, in run_
    self.exec_(keywords)
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Commands/meca_statique.py", line 74, in exec_
    mechaSolv = LinearStaticAnalysis(model, materialField)
RuntimeError: Inconsistent mesh

Apparently my mesh is defective.
My intention was to mesh as a Hexagedron but that doesn't work as a result of the circular contact face.

Bien à vous,

Roger

#11 Code_Aster usage » inconsistant mesh SOLVED » 2022-07-11 12:06:01

rmoortgat
Replies: 5

I'm tryin to model a reinforced concrete plate of 4,00 x 4,00 x 0,15 m.? reinforced with a steel mesh and supported in the center with a column diameter 0,40m.
I'm gettin a inconsistant mesh error without much further explanation.
Can someone help me with this one.


Thanks in advance,

Roger

#12 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-07-04 18:30:36

When running salome-meca on WSL the mouse pointer is very big
Can'f find a way to diminish the cursor.

Roger

#13 Code_Aster usage » test cases missing » 2022-06-26 09:20:35

rmoortgat
Replies: 0

Hello,

some test cases included in the documentation (for instance SSNS111) are missing when trying to import them into salome-meca.
Is this because they became obsolete, or am I missing something?
I'm looking for an example on how to model a reinforced concrete plate with a steel mesh.

Kind regards,

Roger

#14 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-12 10:16:40

This my batch file salome.bat:

cd c:\salome_wsl
wsl --distribution SalomeMeca2021 --user user
./salome.sh salome_meca

cmd /k


This is my shell file salome.sh:
function salome_meca ()
{
    echo "INFO: Running salome_meca on wslg display (rdp implementation)";
    fix_shm;
    singularity run -B /mnt/wslg salome*.sif
}
$1

Unfortunately this doesn't work.
The batch file opens a terminal but doesn't execute salome.sh

C:\WINDOWS\system32>cd c:\salome_wsl

c:\Salome_WSL>wsl --distribution SalomeMeca2021 --user user
user@DESKTOP-PMGA9BL:/mnt/c/Salome_WSL>

Roger

#15 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-10 10:02:19

I try to run it with a batch file.

cd c:\salome_wsl
wsl --distribution SalomeMeca2021 --user user
start salome_meca

however powershell opens but the salome_meca command is not executed.

Roger

#16 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-09 14:17:11

I updatet to win 11 and now it works however with a lot of warnings.

user@DESKTOP-PMGA9BL:/mnt/c/Salome_WSL> salome_meca
INFO: Running salome_meca on wslg display (rdp implementation)
[sudo] password for root:
*****************************************************
INFO : Running salome_meca in software rendering mode
*****************************************************
runSalome running on DESKTOP-PMGA9BL
Searching for a free port for naming service: 2836 - OK
Searching Naming Service  + found in 0.1 seconds
Searching /Kernel/Session in Naming Service  ++++++++++++++++++++++++++ found in 13.0 seconds
Start SALOME, elapsed time :  13.7 seconds
****************************************************************
     Warning: module GHS3DPLUGIN is improperly configured!
     Module GHS3DPLUGIN will not be available in GUI mode!
****************************************************************
****************************************************************
     Warning: module GHS3DPRLPLUGIN is improperly configured!
     Module GHS3DPRLPLUGIN will not be available in GUI mode!
****************************************************************
****************************************************************
     Warning: module BLSURFPLUGIN is improperly configured!
     Module BLSURFPLUGIN will not be available in GUI mode!
****************************************************************
****************************************************************
     Warning: module NETGENPLUGIN is improperly configured!
     Module NETGENPLUGIN will not be available in GUI mode!
****************************************************************
****************************************************************
     Warning: module HYBRIDPLUGIN is improperly configured!
     Module HYBRIDPLUGIN will not be available in GUI mode!
****************************************************************
****************************************************************
     Warning: module GMSHPLUGIN is improperly configured!
     Module GMSHPLUGIN will not be available in GUI mode!
****************************************************************
****************************************************************
     Warning: module HexoticPLUGIN is improperly configured!
     Module HexoticPLUGIN will not be available in GUI mode!
****************************************************************

#17 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-07 14:00:51

You need to install an x server like VcXsrv in windows so that you can run graphical apps in wsl.

I did actually following your procedure and recommandations but it still doesn't work.
I give up, i'm happy with the Linux version.

Roger

#18 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-07 11:28:32

xclock gives : Error: Can't open display

salome_meca gives:
user@DESKTOP-PMGA9BL:/mnt/c/Salome_WSL> salome_meca
INFO: Running salome_meca on wslg display (rdp implementation)
[sudo] password for root:
*****************************************************
INFO : Running salome_meca in software rendering mode
*****************************************************
runSalome running on DESKTOP-PMGA9BL
Searching for a free port for naming service: 2823 - OK
Searching Naming Service  + found in 0.1 seconds
Searching /Kernel/Session in Naming Service  ++++++++++++++++++++Traceback (most recent call last):
  File "/opt/salome_meca/Salome-V2021-s9/modules/KERNEL_V9_7_0/bin/salome/orbmodule.py", line 181, in waitNSPID
    os.kill(thePID,0)
ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/salome_meca/appli_V2021/bin/salome/runSalome.py", line 694, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/opt/salome_meca/appli_V2021/bin/salome/runSalome.py", line 639, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/opt/salome_meca/Salome-V2021-s9/modules/KERNEL_V9_7_0/bin/salome/orbmodule.py", line 183, in waitNSPID
    raise RuntimeError("Process %d for %s not found" % (thePID,theName))
RuntimeError: Process 1792 for /Kernel/Session not found


--- Error during Salome launch ---

#20 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-05 18:10:06

Got it up with following error:

user@DESKTOP-PMGA9BL:/mnt/c/Data> salome_meca_xlaunch
INFO: Running salome_meca on an external Xserver (to be configured on windows side)
[sudo] password for root:
*****************************************************
INFO : Running salome_meca in software rendering mode
*****************************************************
runSalome running on DESKTOP-PMGA9BL
Searching for a free port for naming service: 2816 - OK
Searching Naming Service  + found in 0.1 seconds
Searching /Kernel/Session in Naming Service  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Traceback (most recent call last):
  File "/opt/salome_meca/Salome-V2021-s9/modules/KERNEL_V9_7_0/bin/salome/orbmodule.py", line 181, in waitNSPID
    os.kill(thePID,0)
ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/salome_meca/appli_V2021/bin/salome/runSalome.py", line 694, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/opt/salome_meca/appli_V2021/bin/salome/runSalome.py", line 639, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/opt/salome_meca/Salome-V2021-s9/modules/KERNEL_V9_7_0/bin/salome/orbmodule.py", line 183, in waitNSPID
    raise RuntimeError("Process %d for %s not found" % (thePID,theName))
RuntimeError: Process 1740 for /Kernel/Session not found


--- Error during Salome launch ---
user@DESKTOP-PMGA9BL:/mnt/c/Data>

Roger

#21 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-04 20:17:59

Still the same problem:

PS C:\Salome_WSL> wsl --distribution SalomeMeca2021 --user user
Het systeem kan het opgegeven pad niet vinden.


Content of map c:\Salome_WSL

ext4.vhdx
salome_meca-lgpl-2021.0.0-1-20210811-scibian-9.sif

Roger

#22 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-04 19:46:06

Still no sucess: path not found

PS C:\> wsl --list --all
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
openSUSE-42
SalomeMeca2021
PS C:\> wsl --distribution SalomeMeca2021 --user roger
Het systeem kan het opgegeven pad niet vinden.
PS C:\> wsl --setdefault SalomeMeca2021
PS C:\> wsl --list --all
Windows Subsystem for Linux Distributions:
SalomeMeca2021 (Default)
Ubuntu
openSUSE-42
PS C:\> wsl --distribution SalomeMeca2021 --user roger
Het systeem kan het opgegeven pad niet vinden.
PS C:\>

Kind Regards
Roger

#23 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-04 19:13:30

The previous command needs to be launched in windows cmd prompt directly and not within the wsl distro.


Now I get 'The system cannot find the given path'.

Roger

#24 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-04 16:53:58

Can you try to run the distro as "user"

wsl --distribution SalomeMeca2021 --user user

The shortcuts to these scripts (salome_meca*) have been added to this user profile only if I'm not mistaken (have a look at the ~/.bashrc file)

Thank you for your reply,

now I get

roger@DESKTOP-PMGA9BL:/mnt/c/Salome_WSL$ wsl --distribution SalomeMeca2021 --user roger
wsl: command not found

I suppose I make some stupid mistake however I'm a structural engineer with limited knowledge of programming :-)

Roger

#25 Re: Salome-Meca installation » Salome Meca 2021 on WSL2 » 2022-02-04 10:29:03

roger@DESKTOP-PMGA9BL:/mnt/c/Salome_WSL$ salome_meca
salome_meca: command not found

Please some help.
Did all the steps as prescribed, however salome_meca doesn't open.

Roger