Single body area

Numerical methods and mathematical models of Elmer
Post Reply
gforti
Posts: 77
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Single body area

Post by gforti »

Hallo all,

Is there a way to get a single body area? I am working with 2D and using SaveScalars:

Code: Select all

    Variable 3 = Potential
    Operator 3 = Volume
    Mask Name 3 = InnerLeftCoil
Mask is not working here. And, yes, I know, I can get this information somewhere else.
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Single body area

Post by raback »

Hi,

Try operator "body volume". Initially the operators operated just on "body force" section but later a feature was added that allows to use the section of interest as prefix of the operator.

-Peter
gforti
Posts: 77
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Re: Single body area

Post by gforti »

Thanks. it worked.

Now, i have in the Body :

Code: Select all

Body 3
    Target Bodies(1) = 3
    Name = "Body 3"
    Equation = 1
    Material = 1
    Body Force = 2
    InnerLeftCoil = Logical True
End
and in the solver:

Code: Select all

Solver 3
! Remember that Elmer keeps the axial length as 1 m and in Femm this can be set. 
! In Femm, this integral is dependent on the axial length.
    Equation = SaveScalars
    Procedure = "SaveData" "SaveScalars"
    Filename = result
    Exec Solver = After Timestep

    Variable 1 = Potential
    Operator 1 = Body int
    Mask Name 1 = OuterLeftCoil

    Variable 2 = Potential
    Operator 2 = Body int
    Mask Name 2 = InnerLeftCoil

    Variable 3 = Potential
    Operator 3 = Body Volume
    Mask Name 3 = InnerLeftCoil
End
Post Reply