Overview
Comment:Fixed interpretation of causal assignment on bonds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: c364bd4af81b284b9543923981c385c40bde19a2b520da7a4fe1b2f15f08156d
User & Date: geraint@users.sourceforge.net on 2004-08-13 00:14:03
Other Links: branch diff | manifest | tags
Context
2004-08-13
01:30:21
Example system consisting of a stack of 2D rigid bars mounted on oscillating supports.

Demonstrates Dia-built hierarchical models, including vector ports, repeated components and aliasing of parameters. check-in: d4a035ed51 user: geraint@users.sourceforge.net tags: origin/master, trunk

00:14:03
Fixed interpretation of causal assignment on bonds. check-in: c364bd4af8 user: geraint@users.sourceforge.net tags: origin/master, trunk
2004-08-12
12:28:03
Removed: interferes with make dependencies for odes.dat2 check-in: bda73f83ef user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/dia2abg.pl from [6be8b310ce] to [9fb297b3c3].

508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524

	for ($effort_causality) {
	    if (/-1/) { $effort_causality = "tail";}
	    if (/0/) { $effort_causality = "none";}
	    if (/1/) { $effort_causality = "head";}
	}
	for ($flow_causality) {
	    if (/-1/) { $flow_causality = "tail";}
	    if (/0/) { $flow_causality = "none";}
	    if (/1/) { $flow_causality = "head";}
	}
		       
	print OUT
	    "  ## bond $mtt_bond_id \n" .
	    "  ${diagram_name}.bonds.bond${mtt_bond_id_index{$dia_bond_id}}." .
	    "head.component = \"${head_component}\";\n" .
	    "  ${diagram_name}.bonds.bond${mtt_bond_id_index{$dia_bond_id}}." .







|

|







508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524

	for ($effort_causality) {
	    if (/-1/) { $effort_causality = "tail";}
	    if (/0/) { $effort_causality = "none";}
	    if (/1/) { $effort_causality = "head";}
	}
	for ($flow_causality) {
	    if (/-1/) { $flow_causality = "head";}
	    if (/0/) { $flow_causality = "none";}
	    if (/1/) { $flow_causality = "tail";}
	}
		       
	print OUT
	    "  ## bond $mtt_bond_id \n" .
	    "  ${diagram_name}.bonds.bond${mtt_bond_id_index{$dia_bond_id}}." .
	    "head.component = \"${head_component}\";\n" .
	    "  ${diagram_name}.bonds.bond${mtt_bond_id_index{$dia_bond_id}}." .


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]