Hello All:
I am new at using Elmer and am attempting to analyze a stranded electrical cable using both the static current and heat equation solver. My cable has a large number of nodes, and the details that the GUI provides are as follows:
"Mesh dimension: 3
Leading element dimension: 3
Nodes: 48356
Volume elements: 32970
Surface elements: 50554
Edge elements: 92316
Point elements: 0
ELEMENT TYPES
808: 32970
404: 50554
202: 92316
...
Total: 29550 surface boundaries
(0 edge boundaries/bodies)"
I have been editing the SIF file in a text editor and copying/pasting into Elmer so as to "bypass" the need to set everything up in the GUI each time.
My issue: when I start the solver, I get the following error: "ERROR:: ReadAndTrim: Output length exeeded."
I have tried to edit the egini file in the Elmer/bin/edf folder to increase the maximum number of everything, but that hasn't worked (even after I increased it to what I would consider an exceedingly large number). I am wondering what the limitations in Elmer are in terms of "output length" and what the maximum number of boundaries is.
Some detail: within my sif file, I essentially have 4 boundary conditions, where 2 must apply to 664 boundaries each, and the other 2 must apply to 120 boundaries each. I can send a link to the sif file if need be.
Thanks for your time!
Best Regards,
Courtney
Output Length Exceeded Error
Re: Output Length Exceeded Error
Hi,
the bin/edf/egini file does not have any effect on the solver, it just contains settings for ElmerGUI. So if you edit the sif file by hand anyway, you don't need to care about files in bin/edf.
That doesn't answer the question where your error comes from, which I pass to the real gurus...
Matthias
the bin/edf/egini file does not have any effect on the solver, it just contains settings for ElmerGUI. So if you edit the sif file by hand anyway, you don't need to care about files in bin/edf.
That doesn't answer the question where your error comes from, which I pass to the real gurus...
Matthias
-
- Site Admin
- Posts: 4812
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Output Length Exceeded Error
Hi Courtney
As Matthias pointed out it is not the ElmerGUI. I would rather look at Types.src and the MAX_STRING_LEN there. It is probably used in ModelDescription.src when the .sif file is read in.
However, I would also think of other possibilities:
1) Can you not join the entities in the initial mesher to have a more simple command file?
2) Or could you have a default BC which would use some other condition to choose between the different BCs?
Also you could try to set "CHECK KEYWORDS echo" to see where you go wrong in more detail.
-Peter
As Matthias pointed out it is not the ElmerGUI. I would rather look at Types.src and the MAX_STRING_LEN there. It is probably used in ModelDescription.src when the .sif file is read in.
However, I would also think of other possibilities:
1) Can you not join the entities in the initial mesher to have a more simple command file?
2) Or could you have a default BC which would use some other condition to choose between the different BCs?
Also you could try to set "CHECK KEYWORDS echo" to see where you go wrong in more detail.
-Peter
Re: Output Length Exceeded Error
Hi Peter and Matthias,
First, thank you both for your replies - they are very helpful.
Peter: I did have a question for you - I am unable to locate the Type.src file (or any ".src" files, for that matter). I have found a few "Type" files in various folders, but none of them lead me to a way by which I can edit the Max Output Length variable you mention.
If you could please direct me as to the file path I should follow, that would be great. As a side note, I am using Elmer 7.
Thank you very much for your time and for being willing to help a beginner.
Regards,
Courtney
First, thank you both for your replies - they are very helpful.
Peter: I did have a question for you - I am unable to locate the Type.src file (or any ".src" files, for that matter). I have found a few "Type" files in various folders, but none of them lead me to a way by which I can edit the Max Output Length variable you mention.
If you could please direct me as to the file path I should follow, that would be great. As a side note, I am using Elmer 7.
Thank you very much for your time and for being willing to help a beginner.
Regards,
Courtney
Re: Output Length Exceeded Error
Hi,
to find the Types.src file, you have to get the Elmer sources. It is located under trunc/fem/src. You would then have to recompile Elmer.
If I were you, I would try first what Peter proposed.
Matthias
to find the Types.src file, you have to get the Elmer sources. It is located under trunc/fem/src. You would then have to recompile Elmer.
If I were you, I would try first what Peter proposed.
Matthias
Re: Output Length Exceeded Error
I cannot use either of Peter's suggestions, unfortunately, as there is no way to join or merge my boundaries (unless I go back to the meshing stage, which would be quite time-consuming and perhaps not even possible because of the complexity of my geometry) so I think that this file is my only hope.
I dont' know if these files are hidden, but under C:/Elmer7 the only folder I see are: bin, include, info, lib, libexe, man, samples, share, tests, and tetgen1.4.3.
I've search my computer for trunc/fem/src, but can't find that path anywhere. Is it possible these folders are hidden?
Sorry...
Thanks for your assistance.
Courtney
I dont' know if these files are hidden, but under C:/Elmer7 the only folder I see are: bin, include, info, lib, libexe, man, samples, share, tests, and tetgen1.4.3.
I've search my computer for trunc/fem/src, but can't find that path anywhere. Is it possible these folders are hidden?
Sorry...
Thanks for your assistance.
Courtney
-
- Site Admin
- Posts: 4812
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Output Length Exceeded Error
Hi Courtney
The code is in sf.net/projects/elmerfem. You can get it by
svn checkout http://svn.code.sf.net/p/elmerfem/code/trunk elmersrc
Most compilation instructions include this phase in their explanations also.
-Peter
The code is in sf.net/projects/elmerfem. You can get it by
svn checkout http://svn.code.sf.net/p/elmerfem/code/trunk elmersrc
Most compilation instructions include this phase in their explanations also.
-Peter
Re: Output Length Exceeded Error
Hi,
i changed the sources in SVN such that allocatable character
strings are now used instead of fixed length character strings.
This particular problem shoud not occur after fetching the sources
and recompiling, regardless of the MAX_STRING_LEN setting.
The allocatable characters are somewhat newish feature of
fortran, so lets hope all relevant compilers support this. I know
that, f.ex., gfortran is still partly missing the support of allocatable
characters (e.g. allocatable character strings inside type definitions),
but should support the features now in use by ElmerSolver.
Regards, Juha
i changed the sources in SVN such that allocatable character
strings are now used instead of fixed length character strings.
This particular problem shoud not occur after fetching the sources
and recompiling, regardless of the MAX_STRING_LEN setting.
The allocatable characters are somewhat newish feature of
fortran, so lets hope all relevant compilers support this. I know
that, f.ex., gfortran is still partly missing the support of allocatable
characters (e.g. allocatable character strings inside type definitions),
but should support the features now in use by ElmerSolver.
Regards, Juha
Re: Output Length Exceeded Error
Hi,
unfortunately the gfortran compiler packaged with elmer windows
binaries doesn't support allocatable characters at all, so the current
svn sources are unusable with current windows binary installation.
I'll try to update the gcc in our packages, but that'll take some
time....
Regards,Juha
unfortunately the gfortran compiler packaged with elmer windows
binaries doesn't support allocatable characters at all, so the current
svn sources are unusable with current windows binary installation.
I'll try to update the gcc in our packages, but that'll take some
time....
Regards,Juha