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.
Whitney solver - Wire test case total current calculation
-
- Site Admin
- Posts: 4643
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Whitney solver - Wire test case total current calculation
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
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
Re: Whitney solver - Wire test case total current calculation
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
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
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 $
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
Re: Whitney solver - Wire test case total current calculation
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

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
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

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 (70.52 KiB) Viewed 384 times
-
- Posts: 1974
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: Whitney solver - Wire test case total current calculation
The wire.grd file works as espected on my system
Re: Whitney solver - Wire test case total current calculation
So time to download a new virtual machine I guess. Or maybe directly a windows installer.
Thanks for the support!
Marco
Thanks for the support!
Marco