FEAP User Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
FEAP Version 8.6.1n released: February 14, 2022
Home
Help
Search
FEAPwiki
Login
Register
FEAP User Forum
»
FEAP
»
Input File Issues
»
Precision of COORdinates
« previous
next »
Print
Pages: [
1
]
Author
Topic: Precision of COORdinates (Read 5750 times)
Jfrisch
Full Member
Posts: 65
Precision of COORdinates
«
on:
December 21, 2017, 04:46:45 AM »
Dear FEAP-Users,
what is the precision a coordinate of a node can be given? I have meshed a problem using gmsh and scripted a little python-script to convert the mesh to FEAP. But wether I write the coordinates as a floating-point number or in scientific notation FEAP meshes every node with the second coordinate vanishing (and also the first coordinate of some nodes).
I have attached the four versions I tested and all of them have the same above described behaviour. E.g. node 2 is generated at (0,0) although it is defined at (-1,0) or node 3 is defined at (-1,1) but FEAP creates it at (1,0). What is the problem in my coordinate definition?
Logged
Jfrisch
Full Member
Posts: 65
Re: Precision of COORdinates
«
Reply #1 on:
December 21, 2017, 04:47:28 AM »
Attached the output-files for comparison of node creation.
Logged
Prof. R.L. Taylor
Administrator
FEAP Guru
Posts: 2647
Re: Precision of COORdinates
«
Reply #2 on:
December 21, 2017, 09:02:24 AM »
FEAP only allows 15 digits, including the sign, to define any variable. The blank or comma does not count, so field widths are set to 16 digits. You have more than this.
Logged
Prof. S. Govindjee
Administrator
FEAP Guru
Posts: 1160
Re: Precision of COORdinates
«
Reply #3 on:
December 21, 2017, 09:08:24 AM »
Also, please see section 5.2.1 of the manual for the correct syntax for using COORdinates; you are missing a field.
Logged
Prof. R.L. Taylor
Administrator
FEAP Guru
Posts: 2647
Re: Precision of COORdinates
«
Reply #4 on:
December 21, 2017, 03:31:46 PM »
There is an option that will avoid adding all the missing field: If you are doing an input for ALL the coordinates at once you can use:
COOR ALL
NOGEN
1,,x,y,z
2,x,y,z
.....
to the last node
Logged
Jfrisch
Full Member
Posts: 65
Re: Precision of COORdinates
«
Reply #5 on:
December 22, 2017, 12:30:06 AM »
Thanks Prof. Govindjee, I missed the generator-parameter in my script to convert the node coordinates!
And thanks Prof. Taylor for the information and suggestion of "NOGEN". I haven't found the 16 digits precision printed in the manual - is it there somewhere and I missed it? But I don't get the coordinate I have defined with more than 16 digits ... the lowest ones are of order 10^(-9) and four digits after the comma plus one digit before the comma plus one digit of sign makes at maximum 15 digits?
Logged
Prof. R.L. Taylor
Administrator
FEAP Guru
Posts: 2647
Re: Precision of COORdinates
«
Reply #6 on:
December 22, 2017, 06:59:58 AM »
See Chapter 4 of the user manual for input restrictions.
Logged
Prof. R.L. Taylor
Administrator
FEAP Guru
Posts: 2647
Re: Precision of COORdinates
«
Reply #7 on:
December 22, 2017, 07:16:36 AM »
Actually, if you use the COOR ALL then the reads are read(ior,* ...) which means the inputs are not field width limited but may be resticted by the specific compiler on whether E+000 is accepted or only E+00. Otherwise the restrictions of Ch 4 are applied to the other data input items, such as forces, displacements, etc.
Logged
Print
Pages: [
1
]
« previous
next »
FEAP User Forum
»
FEAP
»
Input File Issues
»
Precision of COORdinates