{"id":679,"date":"2020-09-28T14:39:54","date_gmt":"2020-09-28T21:39:54","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=679"},"modified":"2020-10-06T16:33:09","modified_gmt":"2020-10-06T23:33:09","slug":"118-how-can-i-get-mass-of-model-in-f06","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2020\/09\/118-how-can-i-get-mass-of-model-in-f06\/","title":{"rendered":"#118: How to get mass of model in f06?"},"content":{"rendered":"<p>#117: How to get mass of model in f06?<\/p>\n<p>Case control entry:<\/p>\n<p>WEIGHTCHECK=YES<\/p>\n<p>p.s. This entry has much more options than to use older option PARAM,GRDPNT, 0<\/p>\n<p>Output:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n                                           O U T P U T   F R O M   W E I G H T   C H E C K\r\n0                                                     DEGREES OF FREEDOM SET = J       \r\n0                                                     REFERENCE POINT =        0\r\n                                                                M O\r\n                      *  1.894166E+00  0.000000E+00  0.000000E+00  0.000000E+00  0.000000E+00 -8.893145E+00 *\r\n                      *  0.000000E+00  1.894166E+00  0.000000E+00  0.000000E+00  0.000000E+00  8.032704E+00 *\r\n                      *  0.000000E+00  0.000000E+00  1.894166E+00  8.893145E+00 -8.032704E+00  0.000000E+00 *\r\n                      *  0.000000E+00  0.000000E+00  8.893145E+00  4.923459E+01 -3.982803E+01  0.000000E+00 *\r\n                      *  0.000000E+00  0.000000E+00 -8.032704E+00 -3.982803E+01  4.938454E+01  0.000000E+00 *\r\n                      * -8.893145E+00  8.032704E+00  0.000000E+00  0.000000E+00  0.000000E+00  9.861912E+01 *\r\n                                                                 S\r\n                                           *  1.000000E+00  0.000000E+00  0.000000E+00 *\r\n                                           *  0.000000E+00  1.000000E+00  0.000000E+00 *\r\n                                           *  0.000000E+00  0.000000E+00  1.000000E+00 *\r\n                               DIRECTION\r\n                          MASS AXIS SYSTEM (S)     MASS              X-C.G.        Y-C.G.        Z-C.G.\r\n                                  X            1.894166E+00      0.000000E+00  4.695019E+00  0.000000E+00\r\n                                  Y            1.894166E+00      4.240761E+00  0.000000E+00  0.000000E+00\r\n                                  Z            1.894166E+00      4.240761E+00  4.695019E+00  0.000000E+00\r\n                                                                I(S)\r\n                                           *  7.481100E+00  2.114326E+00  0.000000E+00 *\r\n                                           *  2.114326E+00  1.531976E+01  0.000000E+00 *\r\n                                           *  0.000000E+00  0.000000E+00  2.280086E+01 *\r\n                                                                I(Q)\r\n                                           *  1.585369E+01                             *\r\n                                           *                6.947171E+00               *\r\n                                           *                              2.280086E+01 *\r\n                                                                 Q\r\n                                           *  2.448432E-01  9.695627E-01  0.000000E+00 *\r\n                                           * -9.695627E-01  2.448432E-01  0.000000E+00 *\r\n                                           *  0.000000E+00  0.000000E+00  1.000000E+00 *\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#117: How to get mass of model in f06? Case control entry: WEIGHTCHECK=YES p.s. This entry has much more options than to use older option PARAM,GRDPNT, 0 Output: O U T P U T F R O M W E I G H T C H E C K 0 DEGREES OF FREEDOM SET = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-679","post","type-post","status-publish","format-standard","hentry","category-python"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-aX","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":651,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/09\/106-nonlinear-buckling-sol106\/","url_meta":{"origin":679,"position":0},"title":"#106: Nonlinear Buckling in MSC Nastran (SOL106)","author":"gantovnik","date":"2020-09-25","format":false,"excerpt":"#106: Nonlinear Buckling (SOL106) 1) Linear buckling of Euler column. For clamped-free boundary conditions the critical load is: Pcrit = (pi**2)*E*I\/(4*(L**2)), where, E = 10.5E6, I = 8.333-5, L=10 means Pcrit = 21.59 2) Nonlinear buckling with PARAM,BUCKLE,2 In f06 result file search for following message (right after eigenvalue table).\u2026","rel":"","context":"In &quot;buckling&quot;","block_context":{"text":"buckling","link":"https:\/\/gantovnik.com\/bio-tips\/category\/buckling\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1874,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/06\/353-particle-swarm-optimization-using-python\/","url_meta":{"origin":679,"position":1},"title":"#353 Particle swarm optimization using python","author":"gantovnik","date":"2023-06-28","format":false,"excerpt":"[code language=\"python\"] # pip install pyswarms from pyswarms.single.global_best import GlobalBestPSO import numpy as np # Define characteristics of variables: x_min = [0, 0] x_max = [1, 1] bounds = (x_min, x_max) dim = len(x_min) # Define settings of the algorithm: pop = 100 iterations = 250 options = {'c1': 0.5,\u2026","rel":"","context":"In &quot;optimization&quot;","block_context":{"text":"optimization","link":"https:\/\/gantovnik.com\/bio-tips\/category\/optimization\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1867,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/06\/351-optimization-using-scipy\/","url_meta":{"origin":679,"position":2},"title":"#351 Optimization using SciPy","author":"gantovnik","date":"2023-06-28","format":false,"excerpt":"[code language=\"python\"] from scipy.optimize import linprog # set up cost list with cost function coefficient values c = [-2,-3] # set up constraint coefficient matrix A A_ub = [[1,1],[2,1]] # constraint list for upper bounds (less than or equal constraints) b_ub =[10,15] # in addition, i need to prepare a\u2026","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":575,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/06\/83-application-saving-the-data-to-csv-file\/","url_meta":{"origin":679,"position":3},"title":"#83 Application, Saving the data to csv file","author":"gantovnik","date":"2020-06-13","format":false,"excerpt":"[code language=\"python\"] from datetime import datetime import os import csv import tkinter as tk from tkinter import ttk class LabelInput(tk.Frame): \"\"\"A widget containing a label and input together.\"\"\" def __init__(self, parent, label='', input_class=ttk.Entry, input_var=None, input_args=None, label_args=None, **kwargs): super().__init__(parent, **kwargs) input_args = input_args or {} label_args = label_args or {} self.variable\u2026","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2020\/06\/2020-06-13_025234.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2020\/06\/2020-06-13_025234.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2020\/06\/2020-06-13_025234.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":477,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/02\/extract-eigenvalues-from-nastran-f06-file\/","url_meta":{"origin":679,"position":4},"title":"#68 Extract eigenvalues from Nastran f06 file","author":"gantovnik","date":"2020-02-28","format":false,"excerpt":"grep -i -A 26 'R E A L E I G E N V A L U E S' my_fem.f06 > eigenvalues.txt","rel":"","context":"In &quot;bash&quot;","block_context":{"text":"bash","link":"https:\/\/gantovnik.com\/bio-tips\/category\/bash\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":644,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/09\/103-how-to-print-design-variables-at-every-iteration-in-f06-file-for-sol200\/","url_meta":{"origin":679,"position":5},"title":"#103: How to print design variables at every iteration in .f06 file for SOL200","author":"gantovnik","date":"2020-09-25","format":false,"excerpt":"#103: How to print design variables at every iteration in .f06 file for SOL200 DOPTPRM,P1,1,P2,2 This P1,1 specifies print at every design cycle and P2,2 specifies to print properties.","rel":"","context":"In &quot;nastran&quot;","block_context":{"text":"nastran","link":"https:\/\/gantovnik.com\/bio-tips\/category\/nastran\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=679"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/679\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}