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

You are not logged in.

#1 Re: Salome-Meca usage » SIGSEGV on virtual machine » 2019-12-28 14:00:41

Hi,

You can use mesa3d to provide OpenGL in your virtual machine as described in code-aster.org/forum2/viewtopic.php?id=23568#p60155

Christophe

#2 Re: Salome-Meca usage » Number of labels in colorbar [SOLVED] » 2019-12-12 19:04:05

Hi,

You can use "Automatic annotations" for this purpose. Then disable tick marks and ticks labels.

See the screenshot in attachment.

Christophe

#3 Re: Salome-Meca usage » Some questions regarding Salome Mesh Module & Paravis » 2019-10-31 19:47:17

You can convert to quadratic from the modifications menu.

If you want to split each segment in two (and if you don't have the associate CAD) , you will have to use a python script.

Christophe

#4 Re: Salome-Meca usage » gui library corresponding to the user action can not be found or loade » 2019-10-30 19:17:31

Hi,

An extra-library is needed for Explode to work:

apt-get install libgtk2.0-0

(Salome is in Qt but it seems some prerequisites need gtk2)

If this error occurs again an another function, here is how to find which library is missing:

In the sources of GEOM, check in which plugin library is included the function: src/GEOMGUI/GeometryGUI.cxx

For Explode, we can see it is in "EntityGUI", so libEntityGUI.so in linux.

In the python console of Salome, enter:

import os
os.system("ldd /opt/salome/V2019_univ/modules/GEOM_V9_3_0/lib/salome/libEntityGUI.so|grep found")

If it ends with 256 code, there is no missing library.

If it ends with 0 code, you will see in the terminal the missing library:

libgtk-x11-2.0.so.0 => not found

To find which package can provide this file:

apt-file search libgtk-x11-2.0.so.0

Then install it:

apt-get install libgtk2.0-0

Christophe

#5 Re: Salome-Meca usage » Some questions regarding Salome Mesh Module & Paravis » 2019-10-29 18:48:56

Hi,

1. No, but you can in Paravis.

2. Use the filter Extract Group several times.

Christophe

#6 Re: Salome-Meca installation » OpenGL Problem Salome Meca 2018 » 2019-09-23 16:03:19

Glad it helped! Thank you for the feedback.

Christophe

#7 Re: Salome-Meca installation » OpenGL Problem Salome Meca 2018 » 2019-09-20 18:19:41

You can create a file env_mesa.sh with these lines (adapt the first one to your path):

SALOME_BINARIES=/opt/salome/SALOME-9.3.0-DB08-SRC/BINARIES-DB08
export LD_LIBRARY_PATH=$SALOME_BINARIES/llvm/lib:$SALOME_BINARIES/mesa/lib:$LD_LIBRARY_PATH
export XLIB_SKIP_ARGB_VISUALS=1

Then:

source env_mesa.sh

And launch salome_meca (adapt to your path):

/opt/salome/appli_V2018.0.1_public/salome

#8 Re: Salome-Meca usage » How to correct geometry from Midas FEA? » 2019-09-13 18:06:48

Hi,

It depends on what problems your shape have.

You can use Partition to compute and fix intersecting edges and faces and ensure a conform mesh.

Or use Glue faces or Sewing to get access to some tolerance to fix your shape.

Or use Shape processing.

Christophe

#9 Re: Salome-Meca installation » Salome-Meca V2018 launch problem » 2019-09-11 18:41:14

Hi,

you can also remove ":/lib64" from envProducts.sh and envProducts.cfg in env.d directory.

Christophe

#10 Re: Salome-Meca installation » OpenGL Problem Salome Meca 2018 » 2019-09-11 18:38:00

Hi,

A workaround is available in latest version of Salome by using mesa3d to provide libGL.so with software rendering.

Download Salome from salome-platform.org/downloads/current-version

Choose the version specific to your OS (not the universal binary which does not contain mesa3d).

Launch salome with ./mesa_salome

If it works, you can use env_launch.sh with only llvm and mesa sections to append llvm and mesa to LD_LIBRARY_PATH before launching salome_meca.

Christophe

#13 Salome-Meca usage » Paravis macro to display local base vectors » 2014-03-20 23:13:09

cbourcier
Replies: 5

Hi,

This is a macro to display the local base vectors for beams and shells as stored by IMPR_RESU/CONCEPT/REPERE_LOCAL='OUI'. More information in http://www.code-aster.org/V2/spip.php?article621

To install it, copy the file local_base_vectors.py in $PARAVIS_ROOT_DIR/bin/salome/Macro.

To use it, open the med file written with REPERE_LOCAL="OUI". Before clicking on Apply, untick OnCell/No_Group (because the fields are defined on all the groups => the cells with no group have no value).

In the pipeline, select the med file and click on local_base_vectors in the macros toolbar.

And voila!

Christophe

#16 Salome-Meca usage » Paravis macro to display the principal stress vectors » 2014-03-19 23:42:49

cbourcier
Replies: 3

Hi,

Since it is not straightforward to display the principal stress vectors in Paravis from a SIEQ_ELGA field, I have written a macro that does the job.

To install it, copy the file PRIN_i_vectors.py in $PARAVIS_ROOT_DIR/bin/salome/Macro

To use it, open a med file that must contain a SIEQ field with PRIN_i and VECT_i_j components i=[1..3], j=[X..Z]

If the field is on ELGA, call the filter GaussPoints.

In the pipeline, select the med file (or the result of the GaussPoints filter), and click on PRIN_i_vectors in the macros toolbar.

And voila!

Christophe

PS: known bug in investigation: after a second launch of the macro, the scalar bar remains visible when we hide the representation in GUI. This issue is not specific to this macro, but to scalar bar management in python scipts.

PS2: the color map used in the script is the default Paraview "Diverging". It can be changed in the beginning of the file to "HSV" for those who are used to rainbow scalar maps.

#17 Re: Salome-Meca usage » [SOLVED] Select / probe for result in paravis » 2014-03-17 10:50:23

1. The answer is here: http://salome-platform.org/forum/forum_ … #546296324
Adapt the formula to the name of your result instead of POST and SIEQ_NOEU instead of SIEQ_ELGA.

2. This may happen after using a clip filter, if some elements have been cut. Tick "Crinkle clip" in the properties of the filter.
Elements are sometimes simplified when rotating the view. In Preferences> Paravis> Render View, increase LOD threshold to 50 Mb.
Otherwise, can you post a screenshot and your result file?

3. There seem to be an issue with quadratic elements. Is it your case? Can you apply the filters Tesselate or Tetrahedralize and check if the selection behaves better?

Christophe

#18 Re: Salome-Meca usage » [SOLVED] Select / probe for result in paravis » 2014-03-12 09:18:58

You have to create a field with only the component DX, using the filter calculator.

In the calculator, click on the drop-down button Scalars and select R1_DEPL_DX. Then use this result field in the selection inspector.

Christophe

#19 Re: Salome-Meca usage » [SOLVED] Select / probe for result in paravis » 2014-03-05 22:41:35

Hi,

You can also use the Selection inspector (right-click in the tool bars area to enable it, or in the menu View> Windows) to create a selection based on a group, a threshold, a position... I recommend to dock it at the right side of the 3D view..

To display the values of the field in the 3D view for the selection, go to the bottom of the selection inspector, and in the tab Point label (for a field on nodes), tick Visible.

See the commented screenshot.

Christophe

#20 Re: Salome-Meca usage » Détection d'appartenance à une géométrie » 2014-02-23 14:08:13

Bonjour,

Vous pouvez essayer avec GetInPlaceByHistory, GetInPlace ou GetInPlace avec isNewImplementation=True, en mettant en 1er paramètre la pièce finale et en 2ème paramètre le négatif solide, ou uniquement les faces en commun (faire MakeCommon entre le négatif et l'ouvrage).

Pour récupérer les faces extérieures de l'ouvrage, vous pouvez ausssi utiliser GetFreeFacesIDs, puis créer un groupe avec CreateGroup et ajouter les faces avec UnionIDs.

Christophe

#21 Re: Salome-Meca usage » [SOLVED]Paravis and CUMMUL_DOMMAGE » 2014-02-21 10:44:30

For NOEU field, you don't have to use "Cell data to point data", since it is already a node field.

But Contour works only with field with one component. So you have to create one:
- Call the Calculator filter
- Click on the drop-down button Scalars and select the component you want to use Contour on.
- Apply

Then call the Contour filter.

I made a mistake in my previous post, you have to tick "Compute scalars". "Compute Normals" is ticked by default.

To sum up both messages, Contour needs a field on nodes with one component. You can see it in the help of this filter (click on the "?" button).

Christophe

#22 Re: Salome-Meca usage » [SOLVED]Paravis and CUMMUL_DOMMAGE » 2014-02-21 09:04:53

Do you mean the Contour filter? It works with fields on nodes only. If you don't see any field in Properties Contour by, you have to apply one the filters "Cell centers" or "Cell data to point data" to create a field on nodes. Then you should be able to select the field in Contour by. Don't forget to tick "Compute normals" to be able to display the field on which the isolines/isosurfaces has been computed.

Christophe

#23 Re: Salome-Meca usage » [SOLVED]Paravis and CUMMUL_DOMMAGE » 2014-02-20 16:46:02

There was a bug with the ELNO filters in Salome 7.2.0, it has been fixed in Salome 7.3.0. Can you check that it works in 7.3.0 in your case?

Christophe

#24 Re: Salome-Meca usage » [SOLVED]Paravis and CUMMUL_DOMMAGE » 2014-01-10 22:58:04

Hi,

When using FATIGUE_MULTI with OPTION = 'DOMA_NOEUD', you get a field on nodes, which can be visualized just by selecting the name of the field in Paravis display tab.

But for CUMUL_DOMMAGE, the options are 'DOMA_ELGA*' or 'DOMA_ELNO*'. So, you get a field on gauss points, or a field on nodes per element. Thus, you have to call the filter "Integration points> Gauss points" or "Integration points> ELNO mesh" to be able to display them.

Before calling one of these filters, you only have a field "ELGA" or "ELNO" in the list of fields in Display tab. After calling one of these filters, the right name of the fields are displayed.

Christophe

#25 Re: Salome-Meca installation » acces en bureau a distance a GEOM » 2010-12-27 08:30:39

Hi Pierre,

We use FreeNX too. But it's right that we sometime have to kill freenx processes on the server side.

Christophe