如何实施Kirchoff规则

编程入门 行业动态 更新时间:2024-10-25 04:19:03
本文介绍了如何实施Kirchoff规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

1.用于电路表示的数据结构

  • 用于Kirchoff规则计算目的
  • 如何区分不同类型的电气元件
  • 如何识别他们之间的电线互连

2.执行Kirchoff规则

  • 如何获取当前和电压循环
  • 如何存储和评估Kirchoff方程

[原始问题文本] 具体来说,程序如何识别是串联和并联的,它将如何区分电池,电阻,电容,电感等。

解决方案

Java的面向对象语言您开始考虑如何将系统建模为对象。

您已经有几个对象候选人:

  • 电池
  • 电阻器
  • 电容器
  • 电感

这些将具有输入和输出节点。一个输出是输入到下一个。

晶体管怎么样?您将有多个输入。然后怎样呢?那些是非线性的。您如何模拟这些?

您将为每个人建立正确的行为并将其连接在一起。

这里有一些瞬时强制功能。输入电流或电压波形。输出是每个节点的电流和电压与时间的关系。

这是电气工程师相当于有限元分析。

<这些都是ODE的暂时性,对吧?你打算如何解决?数值整合

1.What data structure to use for electric circuit representation

  • for Kirchoff Rules computation purposes
  • how to differentiate between different types of electric components
  • how to 'recognize' wire inter-connections between them

2.how to implement Kirchoff Rules

  • how to obtain current and voltage loops
  • how to store and evaluate Kirchoff equations

[original question text] Specifically, how would the program recognize something is in series and parallel and how will it differentiate between a battery, resistor, capacitor, inductors, etc..

解决方案

Java's an object-oriented language. Start thinking about how you'd model your system as objects.

You have a few object candidates already:

  • Battery
  • Resistor
  • Capacitor
  • Inductor

These would have input and output nodes. The output from one is the input to the next.

What about transistors? You'll have more than one input. What then? Those are non-linear. How do you model those?

You'll build in the proper behavior for each one and wire them together.

You'll have some kind of transient forcing function here. Input current or voltage waveforms. Output is current and voltage at each node versus time.

This is the electrical engineer's equivalent of finite element analysis.

These are really transient ODE, right? How do you plan to solve them? Numerical integration?

更多推荐

如何实施Kirchoff规则

本文发布于:2023-11-23 03:29:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619917.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:规则   Kirchoff

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!