2024-11-22 10:46:37 +0100 | received badge | ● Notable Question (source) |
2024-11-22 10:46:37 +0100 | received badge | ● Popular Question (source) |
2022-10-26 20:46:21 +0100 | received badge | ● Student (source) |
2022-04-21 03:06:40 +0100 | received badge | ● Famous Question (source) |
2022-02-10 13:15:08 +0100 | received badge | ● Notable Question (source) |
2021-01-09 14:50:59 +0100 | received badge | ● Popular Question (source) |
2020-09-20 00:24:51 +0100 | asked a question | Unable to solve basic equation, what am I doing wrong? I'm trying to solve a simple exponential equation, but Sage freezes on every attempt until I manually stop the process: neither
or
Provide a solution and force me to interrupt the console with ctr-C |
2020-06-28 17:53:14 +0100 | received badge | ● Popular Question (source) |
2020-06-06 14:21:58 +0100 | asked a question | Creating a supercell from a unit cell I'm trying to figure out how to create an arbitrary three dimensional supercell from a 6 coordinate unit cell using Sage. I'm hoping there is someone who may be able to suggest a few functions that could help me solve this problem. Currently I'm approaching it like this but am having trouble making it scalable to other dimensions. |
2020-05-23 00:20:30 +0100 | received badge | ● Supporter (source) |
2020-05-22 21:28:58 +0100 | commented answer | plotting regions in 3D This was very helpful for me. Thank you. |
2020-04-26 02:15:23 +0100 | commented question | How to save 3d plot as rotatable html file I included another tip as an answer. I was having trouble pasting the code as a comment |
2020-04-26 02:15:23 +0100 | received badge | ● Commentator |
2020-04-26 02:14:44 +0100 | answered a question | How to save 3d plot as rotatable html file Running the code with a Sage notebook appears to have fixed the issue. Note that if you have want to view the HTML files on a different computer or host them on a website etc, make sure you update the the following code HTML in your three.js file: Original file HTML (lines 21-24) Updated HTML: |
2020-04-26 02:03:47 +0100 | commented question | How to save 3d plot as rotatable html file I actually coded my own framework for viewing/manipulating molecular structures with Python/Sage. I've never used Jmol at all but I wouldn't be opposed to it. I'm glad it worked for you! |
2020-04-25 05:37:32 +0100 | commented question | How to save 3d plot as rotatable html file I'm running Sage 9.0 on my MacBook and much of my work involves producing 3D crystal structures (three.js) files which can be saved as HTML (an example being the above link). Maybe update Sage to 9.0 with Homebrew on your Mac? |
2020-04-21 04:13:45 +0100 | commented question | How to save 3d plot as rotatable html file Could you paste the code associated with the 3D image directly into a Sage terminal? That would launch a graphics window like this: http://chem302.xyz/wp-content/uploads... The icon in the bottom right hand corner allows you to save an image directly as html. |
2020-04-21 04:12:37 +0100 | answered a question | How to save 3d plot as rotatable html file Could you paste the code associated with the 3D image directly into a Sage terminal? That would launch a graphics window like this: http://chem302.xyz/wp-content/uploads... The icon in the bottom right hand corner allows you to save an image directly as html. |
2020-04-18 04:51:31 +0100 | commented question | Using implicit_plot3d to create a plane between three points Thank you, polygon3d worked perfectly. HyperplaneArrangements looks very useful as well. |
2020-04-16 20:18:03 +0100 | asked a question | Using implicit_plot3d to create a plane between three points Hello all. I'm an undergrad at the beginning phases of an applied crystallography/group theory research project and have been using Sage to make some simple visualization/symmetry analysis scripts. What I'm currently trying to do is create a plane for each face of certain high symmetry groups. Here's an example: http://chem302.xyz/wp-content/uploads... How would I create a plane to represent each face of the tetrahedron? In the code below S[1] through S[4] represent the different coordinates in space that make up the substituent molecules/vertices. So if I want to create a plane between: Would I use implicit_plot3d? I tried to use list_plot3d but it did not cover the entire face. |
2020-03-18 09:43:46 +0100 | received badge | ● Self-Learner (source) |
2020-03-18 09:43:46 +0100 | received badge | ● Teacher (source) |
2020-03-17 04:19:36 +0100 | commented question | Is it possible to determine if a line segment is present between two points on a 3d graphic object? I have fixed the issue and updated the code. Thank you again. |
2020-03-16 23:31:35 +0100 | commented question | Is it possible to determine if a line segment is present between two points on a 3d graphic object? I think this will be a much better approach and I imagine any answer to that question would have taken me down a much more complicated rabbit hole. |
2020-03-16 23:10:00 +0100 | answered a question | Is it possible to determine if a line segment is present between two points on a 3d graphic object? Using John Palmieri's suggestion I created a default dictionary of single bonds and an empty dictionary for pi bonds: When a pi bond pair is added to Pi_Dict, the pairing from Sigma_Dict is deleted I was not aware that lists could be entered into dictionaries and this will make my work much easier. Updated code: |
2020-03-16 21:59:10 +0100 | commented question | Is it possible to determine if a line segment is present between two points on a 3d graphic object? Am I understanding correctly that you're suggesting I create a default position dictionary that would like something like: This way when a user adds a pi bond pair ie A1-A2 I can delete the pairing from the default dictionary and add them to a second dictionary for double bonds or something to that effect. Much more elegant. Thank you for the suggestion. |
2020-03-16 20:22:28 +0100 | asked a question | Is it possible to determine if a line segment is present between two points on a 3d graphic object? Hello everyone. I'm working on a program which plots 3D molecular structures and associated point group symmetries. I've had some issues figuring out how to fill in the remaining single bonds of a six member ring (aromatic class) after the user dictates where double bonds should be placed. These aromatics are basically 6 member cycle graphs for the purposes of my problem. Is there any way to evaluate two coordinates (atoms) on a 3d graphic object (molecule) and check if a line segment (bond) has already been added between them? By necessity any pi (double) bond should only be connected to the adjacent, (non pi-bonded) atom. So for example if there was a pi bond present between Atoms 1 and 2 of a ring then we should have single bonds between A6-A1 and A2-A3. The code below is how I am currently approaching that problem. A1,A2,A3,A4,A6 are fixed, three dimensional coordinates associated with each position on the ring. Can anyone think of a more elegant way to approach this? Here is the function I am currently using to add a double bond between two points: |
2020-03-14 18:52:36 +0100 | commented answer | How to import implicit_plot3d into .py file? Yes, Normalize adjusts all the radii relative to a fixed size for carbon. Thank you. This is exactly what I was looking for. |
2020-03-14 18:43:15 +0100 | edited question | How to import implicit_plot3d into .py file? I'm working on some code for creating 3D molecular structures and everything seems to be working well aside from the fact that I have no idea how to import the 'implicit_plot3d' function into my script. I want to run the code as 'Molecule.py' directly inside of sage. When I try to run it right now I get the following error: Can anyone help me identify the issue? I'm not very experienced with either Python or Sage. Here's a sample function |