[SOLVED] Vtu export fails

The graphical user interface of Elmer
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Vtu export fails

Post by raback »

Hi

Try the 1st one with

Code: Select all

REAL(KIND=dp) :: f(2), g
-Peter
CrocoDuck
Posts: 79
Joined: 12 May 2016, 13:15
Antispam: Yes

Re: Vtu export fails

Post by CrocoDuck »

Hi Peter,

thank you very much, that seems to work!

There are still small differences between MATC and UDF, but I guess they are just numerical accuracy things:

Code: Select all

Mean SPL on Boundary 1

MATC:
Value [dB]:           Frequency [Hz]
4.324772836989E+001   1.000000000000E+002

UDF:
Value [dB]:           Frequency [Hz]
4.324711041416E+001   1.000000000000E+002
I never used Fortran in my life. I guess the line you suggested is declaring f as a 2 real components vector? If so, I guess mine was failing cause the UDF was expecting f to be just a real number...
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Vtu export fails

Post by raback »

Hi

You could try using

Code: Select all

(0.00002_dp * sqrt(2.0_dp)))
Now these floats are probably single precision reals whereas everything else is double precision.

-Peter
CrocoDuck
Posts: 79
Joined: 12 May 2016, 13:15
Antispam: Yes

Re: Vtu export fails

Post by CrocoDuck »

Brilliant!

Thank you so much for your support. I think this problem is pretty much solved now.
Post Reply