Mesh keyword in solver section ?

General discussion about Elmer
Post Reply
spacedout
Posts: 177
Joined: 30 Mar 2020, 23:27
Antispam: Yes

Mesh keyword in solver section ?

Post by spacedout »

Hi

The last line under the Header section (2.2 of the structure of the .sif) in the Elmer Solver manual pdf states:

"Note that separate equations can nevertheless be discretized using different meshes if the location of mesh
files is given in the solver section described below."

Just curious. What is the generic keyword? Is there an example of it being used anywhere?

Sincerely
Marc
kevinarden
Posts: 2300
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Mesh keyword in solver section ?

Post by kevinarden »

I believe the intent is to use the same keyword as the header section
Mesh DB "." "mymesh"

but to locate it in the solver section, if you want each solver to operate on a different mesh. Or putting
Mesh DB "." "mymesh"
in every solver is the same as including it in the header.

I also assume that the header section applies a default to any keyword not otherwise provided in another section.
spacedout
Posts: 177
Joined: 30 Mar 2020, 23:27
Antispam: Yes

Re: Mesh keyword in solver section ?

Post by spacedout »

Makes sense. Not that I need it now but one never knows when it may come in handy in the future. Thanks
mika
Posts: 236
Joined: 15 Sep 2009, 07:44

Re: Mesh keyword in solver section ?

Post by mika »

Hi,

The keyword for giving a mesh in solver section is "Mesh". For example, if the mesh files are contained in directory "solverwise_mesh" under the working directory, one may give the command Mesh = "solverwise_mesh". If some solver section doesn't specify a mesh, then this solver uses the mesh defined in the header section ("Mesh DB ...").

-- Mika
Post Reply