Skip to content

Commit

Permalink
⚡ Add CFD examples
Browse files Browse the repository at this point in the history
  • Loading branch information
micheltakken committed Sep 25, 2023
1 parent 7279f24 commit b8aa4d3
Show file tree
Hide file tree
Showing 32 changed files with 14,992 additions and 0 deletions.
115 changes: 115 additions & 0 deletions examples/CFD/Network1a.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"Network":
{
"Nodes":
[
{
"iD": 0,
"x": 0.0e-3,
"y": 1.05e-3
},
{
"iD": 1,
"x": 1.0e-3,
"y": 2.05e-3
},
{
"iD": 2,
"x": 1.0e-3,
"y": 1.05e-3
},
{
"iD": 3,
"x": 1.0e-3,
"y": 0.05e-3
},
{
"iD": 4,
"x": 3.0e-3,
"y": 1.05e-3
},
{
"iD": -1,
"x": 3.00000001e-3,
"y": 1.05e-3
}
],
"Channels":
[
{
"iD": 0,
"nA": 0,
"nB": 1,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 1,
"nA": 0,
"nB": 2,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 2,
"nA": 0,
"nB": 3,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 3,
"nA": 4,
"nB": -1,
"width": 1e-4,
"height": 1e-4
}
],
"Modules":
[
{
"iD": 0,
"Type":"LBM",
"name": "Paper1a-CFD-40",
"stlFile": "../examples/STL/PaperNetwork1a_CFD.stl",
"charPhysLength": 1e-4,
"charPhysVelocity": 1e-1,
"alpha": 0.0,
"resolution": 40,
"epsilon": 1e-9,
"tau": 0.55,
"posX": 1.0e-3,
"posY": 0.0e-3,
"sizeX": 2e-3,
"sizeY": 2.1e-3,
"Openings":
[
{
"nodeId": 1,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 2,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 3,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 4,
"normalX": -1.0,
"normalY": 0.0,
"width": 1e-4
}
]
}
]
}
}
115 changes: 115 additions & 0 deletions examples/CFD/Network1b.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"Network":
{
"Nodes":
[
{
"iD": 0,
"x": 0.0e-3,
"y": 1.05e-3
},
{
"iD": 1,
"x": 1.0e-3,
"y": 4.05e-3
},
{
"iD": 2,
"x": 1.0e-3,
"y": 2.05e-3
},
{
"iD": 3,
"x": 1.0e-3,
"y": 0.05e-3
},
{
"iD": 4,
"x": 5.0e-3,
"y": 2.05e-3
},
{
"iD": -1,
"x": 5.00000001e-3,
"y": 2.05e-3
}
],
"Channels":
[
{
"iD": 0,
"nA": 0,
"nB": 1,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 1,
"nA": 0,
"nB": 2,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 2,
"nA": 0,
"nB": 3,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 3,
"nA": 4,
"nB": -1,
"width": 1e-4,
"height": 1e-4
}
],
"Modules":
[
{
"iD": 0,
"Type":"LBM",
"name": "Paper1b-CFD-40",
"stlFile": "../examples/STL/PaperNetwork1b_CFD.stl",
"charPhysLength": 1e-4,
"charPhysVelocity": 1e-1,
"alpha": 0.0,
"resolution": 40,
"epsilon": 1e-9,
"tau": 0.55,
"posX": 1.0e-3,
"posY": 0.0e-3,
"sizeX": 4e-3,
"sizeY": 4.1e-3,
"Openings":
[
{
"nodeId": 1,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 2,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 3,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 4,
"normalX": -1.0,
"normalY": 0.0,
"width": 1e-4
}
]
}
]
}
}
115 changes: 115 additions & 0 deletions examples/CFD/Network1c.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"Network":
{
"Nodes":
[
{
"iD": 0,
"x": 0.0e-3,
"y": 1.05e-3
},
{
"iD": 1,
"x": 1.0e-3,
"y": 4.05e-3
},
{
"iD": 2,
"x": 1.0e-3,
"y": 2.05e-3
},
{
"iD": 3,
"x": 1.0e-3,
"y": 0.05e-3
},
{
"iD": 4,
"x": 7.0e-3,
"y": 2.05e-3
},
{
"iD": -1,
"x": 7.00000001e-3,
"y": 2.05e-3
}
],
"Channels":
[
{
"iD": 0,
"nA": 0,
"nB": 1,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 1,
"nA": 0,
"nB": 2,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 2,
"nA": 0,
"nB": 3,
"width": 1e-4,
"height": 1e-4
},
{
"iD": 3,
"nA": 4,
"nB": -1,
"width": 1e-4,
"height": 1e-4
}
],
"Modules":
[
{
"iD": 0,
"Type":"LBM",
"name": "Paper1c-CFD-40",
"stlFile": "../examples/STL/PaperNetwork1c_CFD.stl",
"charPhysLength": 1e-4,
"charPhysVelocity": 1e-1,
"alpha": 0.0,
"resolution": 40,
"epsilon": 1e-9,
"tau": 0.55,
"posX": 1.0e-3,
"posY": 0.0e-3,
"sizeX": 6e-3,
"sizeY": 4.1e-3,
"Openings":
[
{
"nodeId": 1,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 2,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 3,
"normalX": 1.0,
"normalY": 0.0,
"width": 1e-4
},
{
"nodeId": 4,
"normalX": -1.0,
"normalY": 0.0,
"width": 1e-4
}
]
}
]
}
}
Loading

0 comments on commit b8aa4d3

Please sign in to comment.