「$CellNumber」:修訂間差異
跳至導覽
跳至搜尋
| 第8行: | 第8行: | ||
<font size=3 color=red>'''NOTE 1'''<font color=black>: The priority of this function is below the function -- [[$Deltaxyz]], ''i.e.'', the program abandons [[$CellNumber]] while using [[$Deltaxyz]].</font><br> | <font size=3 color=red>'''NOTE 1'''<font color=black>: The priority of this function is below the function -- [[$Deltaxyz]], ''i.e.'', the program abandons [[$CellNumber]] while using [[$Deltaxyz]].</font><br> | ||
'''NOTE 2'''<font color=black>: Since the position of the last point would not be beyond the boundary we set in [[$SpaceRegion]], the mesh size may be different with what we think on intuition. For instance, if Nx=101 from x=0~100e-9 (m), dx = 100e-9/(101-1 | '''NOTE 2'''<font color=black>: Since the position of the last point would not be beyond the boundary we set in [[$SpaceRegion]], the mesh size may be different with what we think on intuition. For instance, if Nx=101 from x=0~100e-9 (m), dx = 100e-9/(101-1'''+0.5''') ~9.95e-10 (m). | ||
</font></font> | </font></font> | ||
於 2018年10月11日 (四) 09:10 的修訂
Format
$CellNumber Nx Ny Nz // where Nx, Ny, Nz are integers.
This defines the total number of nodes in x, y, and z directions. Note that this function is not include the layer of PML. That is, the total number of nodes in simulation may NOT be .
NOTE 1: The priority of this function is below the function -- $Deltaxyz, i.e., the program abandons $CellNumber while using $Deltaxyz.
NOTE 2: Since the position of the last point would not be beyond the boundary we set in $SpaceRegion, the mesh size may be different with what we think on intuition. For instance, if Nx=101 from x=0~100e-9 (m), dx = 100e-9/(101-1+0.5) ~9.95e-10 (m).
Example
$CellNumber 201 201 201
Thus, without PML, there is 201 nodes in x direction, so as the number of nodes are in y and z direction.