Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.7598147
24 January 2025, 17:47:27 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • 1
      • 1
    • b7dd6cb
    • /
    • VatsalSy-Drop-impact-on-viscous-liquid-films-ede5d66
    • /
    • postProcess
    • /
    • findHF.py
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:303efddd1bb443203dac64ee6c1aa8aa3a298123
    origin badgedirectory badge
    swh:1:dir:70bf5e99543362ad259e4f1a4ade4d7219a68ef3
    origin badgesnapshot badge
    swh:1:snp:08e0bbb16876ed0ae34157161c40a1104822baa3
    origin badgerelease badge
    swh:1:rel:44ccb7cd690919e3be4788e53b5de17d7b02b330

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    findHF.py
    # Author: Vatsal Sanjay
    # vatsalsanjay@gmail.com
    # Physics of Fluids
    
    import numpy as np
    import os
    import sys
    
    nGFS = 10000
    ci = int(sys.argv[1])
    
    name = "%d_getHF.dat" % ci
    
    if os.path.exists(name):
        print("File %s found! New data will be appended to the file" % name)
    for ti in range(nGFS):
        t = 0.01 * ti
        place = "intermediate/snapshot-%5.4f" % t
        if not os.path.exists(place):
            print("File %s not found!" % place)
        else:
          print(("Doing %d of %d" % (ti, nGFS)))
          exe = "./findHF %s %s" % (place, name)
          os.system(exe)
                
    

    back to top

    Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API