How Can I Create and Connect Circuit Elements in Mathematica Using Graphics?

Click For Summary

Discussion Overview

The discussion revolves around creating and connecting circuit elements such as resistors and capacitors in Mathematica using graphics. Participants are sharing their experiences, challenges, and partial solutions while working on a homework assignment related to this topic.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant expresses uncertainty about how to create circuit elements in Mathematica and shares an initial attempt at drawing a resistor using the Graphics and Line functions.
  • Another participant reports frustration with joining lines to form a capacitor, indicating a lack of progress after several hours.
  • One suggestion involves using the "Show" command to display multiple graphics entities simultaneously, highlighting the difficulty of using Mathematica for this task.
  • A participant mentions the possibility of drawing circuit elements in another program and importing them into Mathematica, but clarifies that they must use Mathematica for the assignment.
  • Another participant describes their struggle to create a capacitor symbol, detailing their approach of breaking the symbol into sections and using the Line graphic, but encounters issues when trying to combine the sections.
  • A later post requests to see the complete code from another participant, indicating a collaborative effort to troubleshoot the problem.
  • One participant notes that they managed to create the elements by breaking them into sections, despite finding the process challenging.

Areas of Agreement / Disagreement

Participants generally express frustration and difficulty with the task, but there is no consensus on the best approach to create and connect the circuit elements in Mathematica. Multiple competing views and methods are presented without resolution.

Contextual Notes

Participants mention specific challenges related to the limitations of Mathematica for this type of graphic work, including issues with combining graphics and the complexity of drawing circuit symbols.

Michaud12
Messages
18
Reaction score
0

Homework Statement


I need to find a away to make circuit elements (resister capacitor etec) in Mathematica using lines graphic, and I am new to this so I am not really sure how...and i need to connect the elements to make a circuit.


i think i made a resister

Graphics[Line[{{0, 0}, {1, 0}, {2, -1}, {3, 1}, {4, -1}, {5,
1}, {6, -1}, {7, 0}, {8, 0}}]]

but I having issues with the rest..
 
Physics news on Phys.org
several hours later and I've made no progress, i can't even join two lines to make 1 side of the capacitor. If ANYONE has the slightest idea how to help, i really need it
 
The "Show" command will display multiple graphics entities at the same time, which may come in handy. Mathematica is not the easiest tool to use here, for sure. Would it be possible to draw the circuit elements in another program and import the image into Mathematica?
 
Mapes said:
The "Show" command will display multiple graphics entities at the same time, which may come in handy. Mathematica is not the easiest tool to use here, for sure. Would it be possible to draw the circuit elements in another program and import the image into Mathematica?

no this is the last homework in a mathematica class. so we need to use it for the whole thing. The other assignments seemed useful but this one one pointless
 
making the capacitor symbol is really giving me trouble
this is what i have
Cap1 = Graphics@Line[{{1, 0}, {1, .5}}] gave me a vertical line
Cap2 = Graphics@Line[{{0, .25}, {1, .25}}] gave me horizontal line
Capleft = Show[Cap1, Cap2] gave me half of the capacitor logo
then i rotated that 180 degrees to get the other side, then i tried show to combine them but it won't let me
 
Last edited:
What does your complete code look like?
 
i had to break each element into sections but i manged to do it just using the line graphic, it was a pain the the *** tho
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K