• Features
  • Interviews
  • Reviews
    • Books
    • TV, Film and Theatre
    • One From The Vaults
  • New books
  • Columns
    • Doctor Darwin’s Writing Tips
    • Watching History
    • Desert Island Books
  • Advertising
  • About
  • Contact
  • Historia in your inbox

Historia Magazine

The magazine of the Historical Writers Association

FE Snake Script
  • Features
  • Interviews
  • Reviews
    • Books
    • TV, Film and Theatre
    • One From The Vaults
  • New books
  • Columns
    • Doctor Darwin’s Writing Tips
    • Watching History
    • Desert Island Books
  • Advertising
  • About
  • Contact
  • Historia in your inbox

def _local_stiffness(self): k = np.zeros((6,6)) # Standard beam stiffness matrix (axial, bending) # ... (implementation omitted for brevity) return k

def _mass_matrix(self): M = lil_matrix((self.ndof, self.ndof)) # Assemble consistent mass matrix return M.tocsc()

def solve(self, dt, t_final, actuation_func): t = 0.0 u = np.zeros(self.ndof) v = np.zeros(self.ndof) a = np.zeros(self.ndof) while t < t_final: # Newmark prediction u_pred = u + dt * v + dt**2 * (0.5 - self.beta) * a v_pred = v + dt * (1 - self.gamma) * a # Nonlinear solve for a_new # ... Newton-Raphson using residual = M*a + F_int - F_ext # Update u, v, a t += dt return u, v, a The full implementation (~500 lines) is available in the supplementary material.

def nonlinear_force(self, u_e, x0_e): # Compute local deformations, then rotate to global # Returns internal force vector (6,) and tangent stiffness (6,6) pass class SnakeFEModel: def (self, n_elements, length, E, rho, radius=0.005): self.n_elements = n_elements self.n_nodes = n_elements + 1 self.ndof = 3 * self.n_nodes self.E = E self.rho = rho A = np.pi * radius 2 I = np.pi * radius 4 / 4 self.beam = CorotationalBeam(E, A, I, length) self.M = self._mass_matrix()

Search

What’s new in historia

Sign up for our monthly email newsletter:

Follow us on social media:

Follow us on Twitter Follow us on Facebook

New books by HWA members

Snake Script - Fe

def _local_stiffness(self): k = np.zeros((6,6)) # Standard beam stiffness matrix (axial, bending) # ... (implementation omitted for brevity) return k

def _mass_matrix(self): M = lil_matrix((self.ndof, self.ndof)) # Assemble consistent mass matrix return M.tocsc() FE Snake Script

def solve(self, dt, t_final, actuation_func): t = 0.0 u = np.zeros(self.ndof) v = np.zeros(self.ndof) a = np.zeros(self.ndof) while t < t_final: # Newmark prediction u_pred = u + dt * v + dt**2 * (0.5 - self.beta) * a v_pred = v + dt * (1 - self.gamma) * a # Nonlinear solve for a_new # ... Newton-Raphson using residual = M*a + F_int - F_ext # Update u, v, a t += dt return u, v, a The full implementation (~500 lines) is available in the supplementary material. def _local_stiffness(self): k = np

def nonlinear_force(self, u_e, x0_e): # Compute local deformations, then rotate to global # Returns internal force vector (6,) and tangent stiffness (6,6) pass class SnakeFEModel: def (self, n_elements, length, E, rho, radius=0.005): self.n_elements = n_elements self.n_nodes = n_elements + 1 self.ndof = 3 * self.n_nodes self.E = E self.rho = rho A = np.pi * radius 2 I = np.pi * radius 4 / 4 self.beam = CorotationalBeam(E, A, I, length) self.M = self._mass_matrix() x0_e): # Compute local deformations

FE Snake Script

Deadly Dancing at the Seaview Hotel by Glenda Young

4 December 2025

FE Snake Script

Bloody Assaye by Griff Hosker

27 November 2025

See more new releases

Showcase

FE Snake Script

Editor’s picks

FE Snake Script

Show, don’t tell, Write what you know: do they work for historical fiction?

28 June 2025

FE Snake Script

True love (why the greatest love stories are the ones that actually happened)

18 December 2023

FE Snake Script

Re-examining the history of Empire in fact and fiction

2 December 2021

Popular topics

14th century 16th century 17th century 18th century 19th century 20th century 1920s 1930s Ancient Rome Anglo-Saxons author interview awards biography book review Catherine Hokin ebook historical crime historical fiction historical mystery historical thriller history HWA HWA Crown Awards HWA Debut Crown Award India London Matthew Harffy medieval new release paperback research review Scotland Second World War short stories spies the writing life Tudors Vikings women's history writer's life writing writing advice writing tips WWII

Recent Posts

  • File
  • Madha Gaja Raja Tamil Movie Download Kuttymovies In
  • Apk Cort Link
  • Quality And All Size Free Dual Audio 300mb Movies
  • Malayalam Movies Ogomovies.ch

The Historical Writers’ Association

Historia Magazine is published by the Historical Writers’ Association. We are authors, publishers and agents of historical writing, both fiction and non-fiction. For information about membership and profiles of our member authors, please visit our website.

Read more about Historia or find out about advertising and promotional opportunities.

ISSN 2515-2254

Recent Additions

  • Serious play: the fiction-writer’s balancing act
  • The Emperor of Seville by Matthew Carr
  • Deadly Dancing at the Seaview Hotel by Glenda Young

Search Historia

Contact us

If you would like to contact the editor of Historia, please email

Copyright © 2014–2025 The Historical Writers Association

Copyright © 2026 Ultra Harbor