CAELinux2011-Discretizer&unv2abaqus correction

  • dip28p
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #5957 by dip28p
Hi,all.
I want to propose of amend for Discretizer and unv2abaqus.py
1)Discretier
because format of OpenFoam 2.0.1 - fvSchemes is changed,
Discretizer output don't work well. I confirm these changing to Discretizer's author (Björn Bergqvist.)

/opt/disretizer/svn/lib/openfoam.rb(L35)

change
div((nuEff*dev(grad(U).T()))) Gauss linear;
to
div((nuEff*dev(T(grad(U))))) Gauss linear;

/opt/disretizer/svn/lib/dialogs.rb (L1599-1600)
two
"%.4f"
to
"%.4e"
(because if the value is small , output wills be "0.0000" if "%.4f" )


2) unv2abaqus.py
/opt/CalculiX/unv2abaqus.py
change line 112
fil.write('%8d' % (lst.pop(0)))
to
fil.write(('%8d'+ls) % (lst.pop(0)))
(by this , the Boundary Condition line will be written in correct format )


unv2x.py : change line 179-180

self.datasetsIds=[2411,2412,2467]
self.datasetsHandlers=[UNV2411Reader,UNV2412Reader,UNV2467Reader]
to
self.datasetsIds=[2411,2412,2467,2477]
self.datasetsHandlers=[UNV2411Reader,UNV2412Reader,UNV2467Reader,UNV2467Reader]
(by this , unv output from gmsh can be used with calculix )

Regards,
dip28p

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #5958 by Joël Cugnoni
Replied by Joël Cugnoni on topic Re: CAELinux2011-Discretizer&unv2abaqus correction
Thanks for your feedback; I will try to update this as soon as possible.

Cheers

Joel Cugnoni

Joël Cugnoni - a.k.a admin
www.caelinux.com

Please Log in or Create an account to join the conversation.

Moderators: catux
Time to create page: 0.119 seconds
Powered by Kunena Forum