BondCount
詳細とオプション
- 次は,patt の可能な形である.
-
"type" 指定された結合タイプの結合 Bond[{a1,a2},"type"] aiで原子が指定された結合 MoleculePattern[…] 1つの結合がある分子パターン patt1|patt2|… 任意の pattiと一致する結合 - aiは原子インデックスあるいは原子を表すパターンでよい.
- デフォルトオプション設定のIncludeHydrogensAllでは,BondCountによってすべての結合が数えられる.オプション値"ExplicitOnly"を使うと暗黙の水素原子との結合が除外できる.
例題
すべて開く すべて閉じる例 (2)
mol = Molecule["C/C(=C\\C(=O)O)/CCC"]BondCount@molBondCount[mol, "Double"]BondCount[mol, Bond[{"O", _}, "Double"]]mol = Molecule@"7-isothiocyanatoacridine"BondCount[mol, Bond[{Atom["N", "RingAtomQ" -> True], _}]]オプション (1)
IncludeHydrogens (1)
BondCountは,デフォルトで,すべての原子を含む:
mol = Molecule["CCOCCOCCOCCOCCOCCOCC"]BondCount[mol]IncludeHydrogensNoneを使って原子の大半を占める水素を除外する:
BondCount[mol, IncludeHydrogens -> None]% === BondCount[mol, Bond[{Except["H"], Except["H"]}]]考えられる問題 (2)
芳香結合は,視覚的には単結合または二重結合として表示される:
m = Molecule["(Z)-2-(furan-2-yl)-3-(5-nitrothiophen-2-yl)prop-2-enamide"];
MoleculePlot[m]BondCount[m, Bond[_, "Double"]]数を数える前に,MoleculeModifyを使って芳香結合を単結合または二重結合に変換する:
BondCount[MoleculeModify[m, "Kekulize"], Bond[_, "Double"]]Moleculeは水素原子で原子価を埋めようとするので,もとの分子式には含まれない水素原子が数に含まれる:
m = Molecule[{"O"}, {}];BondCount[m]BondCount[m, IncludeHydrogens -> "ExplicitOnly"]MoleculeオプションのValenceFillingNoneを使って水素原子が表示されないようにすることもできる:
m2 = Molecule[{"O"}, {}, ValenceFilling -> None]BondCount[m2]関連するガイド
-
▪
- 分子の構造と計算
テキスト
Wolfram Research (2019), BondCount, Wolfram言語関数, https://reference.wolfram.com/language/ref/BondCount.html (2020年に更新).
CMS
Wolfram Language. 2019. "BondCount." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/BondCount.html.
APA
Wolfram Language. (2019). BondCount. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BondCount.html
BibTeX
@misc{reference.wolfram_2026_bondcount, author="Wolfram Research", title="{BondCount}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/BondCount.html}", note=[Accessed: 11-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_bondcount, organization={Wolfram Research}, title={BondCount}, year={2020}, url={https://reference.wolfram.com/language/ref/BondCount.html}, note=[Accessed: 11-August-2026]}