Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

System call from fortran . . .

More
6 years 7 months ago #90 by joachim
the public repository is now moved to github, see the 'downloads' page, and the docu (nightly version).
Joachim
The following user(s) said Thank You: ddrake
More
6 years 7 months ago #91 by DrTSPC
Dow:

Thanks for your informative feedback.

It is that paragraph which you extracted from ngsolve.org (relative to ngsolve_nightly) that I found 'frustrating': When I tried to install the package, it was not found.

But, when I just tried again . . . it was found, but other issues are apparent:

tscale@tscale-mbp-ubuntu:~$ sudo apt-get install ngsolve_nightly
[sudo] password for tscale:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ngsolve_nightly : Depends: libsuitesparse but it is not installable
E: Unable to correct problems, you have held broken packages.
More
6 years 7 months ago #92 by DrTSPC
Joachim: Thank you. I will try to install from the source to which you just pointed. Tim
More
6 years 7 months ago #93 by DrTSPC
I plan to post a couple of summaries over the next hour or so:

First I reinstalled from source on the two 17.04 vms mentioned in previous posts, following the instructions on the "docu" page on ngsolve.org, except I replaced:

git clone git://git.code.sf.net/p/ngsolve/git ngsolve-src

with
git clone github.com/NGSolve/ngsolve.git ngsolve-src

per Joachim's post. As before, netgen was installed; not ngsolve - on both vms.

In short, I can read/process geo files, though the output file cannot be read/processed. So, I cannot read and mesh "mesh files":

The terminal exchange for processing a geo file is:

netgen -batchmode -geofile=cube.geo
NETGEN-6.2-dev
Developed by Joachim Schoeberl at
2010-xxxx Vienna University of Technology
2006-2010 RWTH Aachen University
1996-2006 Johannes Kepler University Linz
optfile ./ng.opt does not exist - using default values
togl-version : 2
no OpenGL
Load CSG geometry file cube.geo
Calc Triangle Approximation
Object 0 has 1076 triangles
Start Findpoints
Analyze spec points
Find edges
Start Findpoints
Analyze spec points
Find edges
Start Findpoints
Analyze spec points
Find edges
Surface 1 / 6
Optimize Surface
Surface 2 / 6
Optimize Surface
Surface 3 / 6
Optimize Surface
Surface 4 / 6
Optimize Surface
Surface 5 / 6
Optimize Surface
Surface 6 / 6
Optimize Surface

Meshing subdomain 1 of 1
Delaunay meshing
start tetmeshing
Success !
9 points, 11 elements
Remove Illegal Elements
Volume Optimization
Meshing done, time = 0.024819 sec
Save mesh to file out.mesh.... Please Wait!
Save mesh to file .... DONE!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unfortunately,
netgen -batchmode -inputmeshfile=out.mesh -meshfile=out_2.mesh

results in an "empty file" - no points, etc..

I note that there are a couple of suspicious numbers in out.mesh. (From the first command.) The relevant section of the file is:

# surfid 0 p1 p2 trignum1 trignum2 domin/surfnr1 domout/surfnr2 ednr1 dist1 ednr2 dist2
edgesegmentsgi2
24
1 0 1 4 546802052 1 1 3 1 0 0 0
2 0 4 1 546802052 1 1 3 1 0 0 0
3 0 8 7 0 7 5 6 2 0 0 0

Regards,
Tim
More
6 years 7 months ago #94 by ddrake
I get basically the same results when I execute those commands.

I don't think the problem is with the first file generated. If I rename it to out.mesh.vol and load it in the Netgen GUI, I see a valid mesh on the cube. The large positive and negative numbers correspond to trignum1 and trignum2. I'm not sure what these mean, but they are large like this in most mesh files I've looked at.

I don't understand why ngsolve is not building from source for you. I was able to build the current source by cloning from github last night. What errors did you get when trying to make ngsolve this time?
More
6 years 7 months ago #95 by DrTSPC
Some progress.

I can read/process cube.geo, and if I specify the output filename as cube.vol:

netgen -batchmode -geofile=cube.geo -meshfile=cube.vol

I get a file that can be read by netgen:

netgen -batchmode -inputmeshfile=cube.vol -meshfiletype="Neutral Format" -meshfile=cube.mesh

Which is not any more meshed than cube.vol.
The resulting cube.mesh cannot be imported (gui). And

netgen -batchmode -inputmeshfile=cube.mesh -meshfiletype="Neutral Format" -meshfile=cube_2.mesh

results in a bad mesh file (huge integers in the nodal bc info - col. 1 of the last section).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So '.geo' to '.vol' works - and I can get it to mesh, using a sizing flag:

netgen -batchmode -geofile=cube.geo -meshfile=cube.vol -fine

But '.vol' to '.mesh' (Neutral Format) apparently just translates. No meshing.

Use of '.mesh' files is not feasible.

Regards,
Tim
Time to create page: 0.142 seconds