Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TACS component #14

Closed
3 of 6 tasks
kejacobson opened this issue Apr 14, 2019 · 2 comments
Closed
3 of 6 tasks

TACS component #14

kejacobson opened this issue Apr 14, 2019 · 2 comments
Labels

Comments

@kejacobson
Copy link
Collaborator

kejacobson commented Apr 14, 2019

  • check partials
  • general f5 output
  • use individual functions with names instead of single f_struct list
  • functions on subdomain
  • Create separate OM component for TACS mass function
  • Python dictionary for design variables. The python dictionary will contain a list indices associated with certain components of types of components. This will allow the user to easily pull sets of design variables from the full TACS design variable array. For example, tacs_dv = { 'stringers': [ 0,1,2,3,20,21], 'ribs': [4,5,6,22,23] }
@kejacobson
Copy link
Collaborator Author

kejacobson commented Apr 14, 2019

Check partials:
commit 9295e92, examples/funtofem_and_tacs/openmdao_fixed_load.py in complex mode

After adding applyBCs to the rev mode linearizations and switching to complex mode, FD and reverse mode match to machine precision.

Component: TacsSolver 'fsi_solver.struct'

'output' wrt 'variable' fwd mag. rev mag. check mag. a(fwd-chk) a(rev-chk) a(fwd-rev) r(fwd-chk) r(rev-chk) r(fwd-rev)
'u_s' wrt 'dv_struct' 0.0000e+00 4.2756e+07 4.2756e+07 4.2756e+07 1.8096e-08 4.2756e+07 1.0000e+00 4.2323e-16 1.0000e+00
'u_s' wrt 'f_s' 0.0000e+00 6.0000e+00 6.0000e+00 6.0000e+00 0.0000e+00 6.0000e+00 1.0000e+00 0.0000e+00 1.0000e+00
'u_s' wrt 'u_s' 0.0000e+00 2.4104e+12 2.4104e+12 2.4104e+12 3.5972e-04 2.4104e+12 1.0000e+00 1.4924e-16 1.0000e+00
'u_s' wrt 'x_s0' 0.0000e+00 1.4869e+11 1.4869e+11 1.4869e+11 3.7798e-05 1.4869e+11 1.0000e+00 2.5421e-16 1.0000e+00

Component: TacsFunctions 'struct_funcs'

'output' wrt 'variable' fwd mag. rev mag. check mag. a(fwd-chk) a(rev-chk) a(fwd-rev) r(fwd-chk) r(rev-chk) r(fwd-rev)
'f_struct' wrt 'dv_struct' 0.0000e+00 4.2062e+00 4.2062e+00 4.2062e+00 1.7764e-15 4.2062e+00 1.0000e+00 4.2232e-16 1.0000e+00
'f_struct' wrt 'u_s' 0.0000e+00 9.6475e+00 9.6475e+00 9.6475e+00 3.5870e-15 9.6475e+00 1.0000e+00 3.7181e-16 1.0000e+00
'f_struct' wrt 'x_s0' 0.0000e+00 4.4197e+00 4.4197e+00 4.4197e+00 1.6506e-15 4.4197e+00 1.0000e+00 3.7345e-16 1.0000e+00
'mass' wrt 'dv_struct' 0.0000e+00 1.2800e+06 1.2800e+06 1.2800e+06 4.6566e-10 1.2800e+06 1.0000e+00 3.6380e-16 1.0000e+00
'mass' wrt 'u_s' 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 0.0000e+00 nan nan nan
'mass' wrt 'x_s0' 0.0000e+00 7.7460e+03 7.7460e+03 7.7460e+03 1.0779e-12 7.7460e+03 1.0000e+00 1.3915e-16 1.0000e+00

@kejacobson
Copy link
Collaborator Author

Transitioned to pytacs interface in #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant