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

Revision db932cf2ab4fe7eae0baeaad78ce1ce30d866bee authored by Weidner on 12 July 2018, 17:27:20 UTC, committed by Weidner on 12 July 2018, 17:27:20 UTC
New solver classes
1 parent 0f827ca
  • Files
  • Changes
  • e31fa09
  • /
  • simulationSettings.json
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.

  • revision
  • directory
  • content
revision badge
swh:1:rev:db932cf2ab4fe7eae0baeaad78ce1ce30d866bee
directory badge
swh:1:dir:e31fa09ce347eeab2e076f5b1524e8a6b214a991
content badge
swh:1:cnt:4b614aa9dbe134aaf73a2b3f6113658f5ed7e29b

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.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
simulationSettings.json
// EOL Cloth simulation settings
// Not including a setting will fall back to its default
{
	// Use either "mosek" or "gurobi". Make sure you've compiiled with the specified solver enabled
	// This can be left undefined in which case Eigen solvers will be used, but simulations must be collision free
	//"solver": "mosek",

	"timestep": 0.5e-3, // Defaults to 0.5e-3
	
	"gravity": [0.0, 0.0, -9.8], // Defaults to -9.8 in the Z direction	
	
	"EOL": true, // Defaults to false. This on forces Remeshing on
	
	// The default cloth is 1m x 1m, centerd at (0.5,0.5,0.0), with a 2 points x 2 points resolution
	"Cloth": {
		"cloth_obj": "", // This takes priority if an obj is specialized and init is defined
		
		// Used in absence of a cloth obj
		"init": {
			"initial_cloth_res": [3, 3],
			"corner1": [0.0, 0.0, 0.0],
			"corner2": [1.0, 0.0, 0.0],
			"corner3": [0.0, 1.0, 0.0],
			"corner4": [1.0, 1.0, 0.0]
		},
		
		"Material": {
			"density": 0.05, // Kg
			"youngs": 50.0,
			"poissons": 0.01,
			"stiffness": 1.0e-5,
			"damping": [0.0, 1.0]
		},
		
		// The inclusion of Remeshing in the settings file means to sim with it
		"Remeshing": {
			"refine_angle": 0.3,
			"refine_compression": 0.005,
			"refine_velocity": 0.5,
			"size": [120e-3, 150e-3], // These are the main bounds that changes the overall resolution
			"aspect_min": 0.2
		},
		
		// 
		"Fixed": [
			[0, 0, 0, 0]
		]
	},
	
	// Obstacles can include points, boxes, or both
	// Either can be loaded from an external file, defined here, or both
	"Obstacles": {
		"threshold": 5e-3,
		"points_file": "",
		"points": [
			[0.91, 10.885, -0.001, 
			0.0, 0.0, -1.0]
		],
		
		"box_file": "",
		"boxes": [
			[0.45, 0.45, 0.5,
			0.4425, 0.4425, -10.249,
			0.0, 0.0, 0.0,
			0.0, 0.0, 0.0]
		]
	
	}
}
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, 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