Exporting a variable for a material

General discussion about Elmer
Post Reply
mrceresa
Posts: 18
Joined: 11 Jan 2013, 21:18
Antispam: Yes

Exporting a variable for a material

Post by mrceresa »

Hi all,
I define a Young Modulus with an UDF such as:

Code: Select all

Material 2
  Name = "Membrane"
  Poisson ratio = 0.3
  Youngs modulus = Variable time;Real Procedure "MembraneStuff" "YOUNGS";
  Sound speed = 5000.0
  Mesh Poisson ratio = 0.30
  Density = 1e6
End
and then try to export in vtu defining in the elasticity solver:

Code: Select all

  Exported Variable 1 = -dofs 1 Youngs modulus
however, the variable in the resulting vtu is always zero.
Is it possible to export Material properties defined as UDF?

Thanks and regards,

Mario
gagliar
Posts: 79
Joined: 04 Sep 2009, 16:34
Location: LGGE - Grenoble
Contact:

Re: Exporting a variable for a material

Post by gagliar »

Hi Mario,


The Save Material (see Elmer Model documentation, model 50) should do the job.

The way you are doing it now will not work as "Young Modulus" in the Material section is a keyword for the solver but not the variable you have declared.

Regards
Olivier
mrceresa
Posts: 18
Joined: 11 Jan 2013, 21:18
Antispam: Yes

Re: Exporting a variable for a material

Post by mrceresa »

Thanks Oliver, It worked!

Best,

Mario
Post Reply