Name

b2convert_from_salome — Create a B2000++ MDL file from a Salome mesh

Synopsis

b2convert_from_salome MED_FILENAME|UNV_FILENAME MDL_INPUT_FILENAME MDL_OUTPUT_FILENAME|DBNAME

Description

The b2convert_from_salome program merges a Salome mesh file and a MDL file containing complementary information and creates an MDL file which then can be processed by b2ip++. Alternatively, if DBNAME is specified, it directly processes the merged file with the b2ip++ program. The b2convert_from_salome program is launched from a shell.

Arguments

MED_FILENAME

Salome binary mesh file to be converted.

UNV_FILENAME

Salome universal mesh file to be converted (input).

MDL_INPUT_FILENAME

MDL file with complementary information for creating the model (input).

MDL_OUTPUT_FILENAME

The created MDL file, to be processed by the b2ip++ program (output).

DBNAME

The B2000++. Specifying the database corresponds to generating MDL_OUTPUT_FILENAME followed by the b2ip++ program.

Format of the complementary MDL file

The MDL_INPUT_FILENAME file contains information that cannot be defined in the Salome mesh. This complementary information concerns element types, element materials, element properties, conditions, constraints, solution strategies, etc.

This file is structured like an ordinary MDL file, except that it does not contain any node coordinates, element connectivities, nodeset, elementset, edgeset, or faceset definitions. Instead it contains placeholders like @unv_nodes(). For the b2convert_from_salome program, such a placeholder indicates that it should insert the respective items, in this case the node coordinates, into the merged MDL file.

The following example illustrates this concept:

nodes
  @unv_nodes()
end

elements
  type HE8.S.TL  mid 1
  @unv_elements("HE8")

  type HE20.S.TL  mid 1
  @unv_elements("HE20")

  type HE27.S.TL  mid 1
  @unv_elements("HE27")

  type TE4.S.TL  mid 1
  @unv_elements("TE4")

  type TE10.S.TL  mid 1
  @unv_elements("TE10")
end

@unv_all_sets()

material 1 type isotropic
  e 73.1e3
  nu 0.3
  density 2.78e9
end

nbc 1 type pressure
  pressure 2.5  faceset pressure_face
end

ebc 1
  value 0.  dof [UX UY UZ]  nodeset lock_face
end

case 1
  analysis  linear
  nbc       1
  ebc       1
end

adir
  case 1
end