Whitney solver - Wire test case total current calculation

Numerical methods and mathematical models of Elmer
Rich_B
Posts: 172
Joined: 24 Aug 2009, 20:18

Re: Whitney solver - Wire test case total current calculation

Post by Rich_B »

Hello,

As shown in this post
viewtopic.php?p=25380&hilit=matc+command+line#p25380

you should be able to start matc from the command line. If matc hasn't been compiled, then it will fail.

As Kevin said, sounds like an installation or compilation issue.

Rich.
raback
Site Admin
Posts: 4423
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Whitney solver - Wire test case total current calculation

Post by raback »

Hi

The MATC thing might not be the issue. It is not needed here. It would be better to inform that it is missing only when needed but the parser does not check that.

Still it is probably some installation thing. Can you run any *.grd file in the described manner?

What is your OS and how did you obtain the binary?

-Peter
lazyTom
Posts: 53
Joined: 05 Jun 2013, 01:32
Antispam: Yes

Re: Whitney solver - Wire test case total current calculation

Post by lazyTom »

Thanks for the prompt reply,

so I have tried to run matc by saying "matc". I think it worked as the cursor went in newline awaiting for instructions. I didnt get any error and when I pressed ctrl+z the standard prompt returned, the output is shown below

Code: Select all

elmeruser@ElmerCSC-VM /mnt/hgfs/gmsh/Connector_AC_analysis/mgdyn_harmonic_wire $ matc
^Z
[2]+  Stopped                 matc
elmeruser@ElmerCSC-VM /mnt/hgfs/gmsh/Connector_AC_analysis/mgdyn_harmonic_wire $ 
I would say thaat matc is present.

Now comes the the part that might be the problem... I'm using a VM at least one year old but just updated successfully (no compiling errors that I'm aware of) a couple of days ago.

Marco
lazyTom
Posts: 53
Joined: 05 Jun 2013, 01:32
Antispam: Yes

Re: Whitney solver - Wire test case total current calculation

Post by lazyTom »

Right... I forgot to run another .grd file.

So I have tried this one in https://github.com/ElmerCSC/elmer-elmag ... Magnets/3D

I said: ElmerGrid 1 2 two_bodies3d.grd and everything worked well. See below a picture of ElmerGUI loading the mesh

Image

So the problem is actually with the wire.grd file?

Marco

PS: If it helps, the output of ElnerGrid 1 2 two_bodies3d.grd is here

Code: Select all

Starting program Elmergrid
Elmergrid reading in-line arguments
Output will be saved to file two_bodies3d.

Elmergrid loading data:
-----------------------
Loading the geometry from file 'two_bodies3d.grd'.
Loading ElmerGrid file version: 210903
Defining the coordinate system (2-DIM).
Loading 5 subcell limits in X-direction
Loading 8 subcell limits in Y-direction
Loading material structure
LoadElmergrid: materials interval is [1,6]
Loading boundary conditions
Found 3 boundaries
Reached the end of command file
Found 1 divisions for grid

Loading ElmerGrid commands from file 'two_bodies3d.grd'.
Reached the end of command file
Read commands from a file

Elmergrid creating and manipulating meshes:
-------------------------------------------
15 cells were created.
Numbered 1071 knots in 1000 4-node elements.
Numbering order was <x><y> and max levelwidth 23.
20 element sides between materials 5 and 1 were located to type 1.
50 element sides between materials -2 and 1 were located to type 2.
20 element sides between materials 6 and 1 were located to type 3.
Coordinates defined in 2 dimensions
Created 32 divisions in 8 cells for rotation [0.5  1].
Maximum elementtype 404 extruded to type 808.
Allocated for 3 new BC lists
Extruded mesh has 28800 elements in 32 levels.
Simple extrusion would have 32000 elements
Cylindrical geometry with r1=0.5 r2=1 for 35343 nodes.
6375/35343 candidates for duplicate nodes.
Found 2448 double nodes in 20317125 tests.
Eliminated 9300 nodes from topology.
Extruded BCs list 0 of types [1,1] has 576 elements.
Extruded BCs list 1 of types [2,2] has 1600 elements.
Extruded BCs list 2 of types [3,3] has 576 elements.
35343 original nodes moved to 30243 new ones.
Reordering 30243 knots and 28800 elements in 3-dimensions.
Ordering with (1*x + 1*y + 1*z)
Moving knots to new positions
Moving the elements to new positions
Moving the parents of the boundary nodes.
Indexwidth of the new node order is 8326.
Cylindrical coordinate for r1=0.5 and r2=1.
Improving cylindrical mesh quality r1=0.5, r2=1 and c=0.7887
Created 28800 elements and 30243 nodes by rotation of 360 degrees.

Elmergrid saving data with method 2:
-------------------------------------
Saving mesh in ElmerSolver format to directory two_bodies3d.
Saving 30243 coordinates to mesh.nodes.
Saving 28800 element topologies to mesh.elements.
Saving boundary elements to mesh.boundary.
Saving header info to mesh.header.

Thank you for using Elmergrid!
Send bug reports and feature wishes to elmeradm@csc.fi
Attachments
2bodies.png
2bodies.png (70.52 KiB) Viewed 34 times
kevinarden
Posts: 1513
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Whitney solver - Wire test case total current calculation

Post by kevinarden »

The wire.grd file works as espected on my system
lazyTom
Posts: 53
Joined: 05 Jun 2013, 01:32
Antispam: Yes

Re: Whitney solver - Wire test case total current calculation

Post by lazyTom »

So time to download a new virtual machine I guess. Or maybe directly a windows installer.

Thanks for the support!

Marco
Post Reply