Skip to content

Commit

Permalink
2024-11-26 14:45:39 +0800
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWorld-1017 committed Nov 26, 2024
1 parent 4625eff commit a79d427
Show file tree
Hide file tree
Showing 12 changed files with 161 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: Use MATLAB Script to Construct Solenoid Model in Ansys Electronics Desktop
categories:
- MATLAB
- Finite Element Simulation
- Materials
- MATLAB
- Physics
tags:
- Electromagnetism
Expand All @@ -16,13 +17,13 @@ last_modified_at: 2024-07-17 15:02:48 +0800

About two months ago, I studied a simple-but-complete FEM example from Ansys Electronics Desktop (AEDT) about how to use AEDT to simulate a solenoid model and obtain the corresponding simulation results, mainly including magnetic flux and electromagnetic force. This example helped me to understand the basic operation in AEDT software and push on my personal research. However, in the past period of time, I spent most time and energy to learn English for IELTS examination, thereby forgetting some details of this example when I looking back right now. So I would write this blog to put these contents together.

This FEM example is called *Getting Started with Maxwell: A 2D Magnetostatic Solenoid Problem* [1]. The introduction in PDF version is available in `Help` tab if you have installed AEDT and inserted a Maxwell 2D (or 3D) Design (in `Project` Tab):
This FEM example is called *Getting Started with Maxwell: A 2D Magnetostatic Solenoid Problem*[^1]. The introduction in PDF version is available in `Help` tab if you have installed AEDT and inserted a Maxwell 2D (or 3D) Design (in `Project` Tab):

![image-20230826204855555](https://github.com/HelloWorld-1017/blog-images/blob/main/migration/imgpersonal/image-20230826204855555.png?raw=true)

This 92-page introduction is rather detailed and freshman-friendly, illustrating how to build and analyse Solenoid model from scratch. Almost everyone could get the same results if follow this tech booklet step by step. So, this blog is not intent to repeat or copy its contents, but try to cope with an issue associated with efficiency: How to construct and simulate solenoid model in scripting way (specifically using MATLAB) ?

To begin with, the AEDT supported scripting, and the relative documentation (called *Maxwell Scripting Guide*) could also be found in `Help` tab as shown in the above figure. This documentation gives the information about how to build an FEM model using two alternative scripting ways, by either **VBscript** or **IronPython**. The usage of each function looks the same no mater which scripting language we choose as I reckon they are both belonging to the object-oriented programming. However, my favourite scripting software is MATLAB, so I spent some time to find an approach to use MATLAB to realise my objective. Luckily, it works, by creating COM server [2] and then calling VBscript object in MATLAB.
To begin with, the AEDT supported scripting, and the relative documentation (called *Maxwell Scripting Guide*) could also be found in `Help` tab as shown in the above figure. This documentation gives the information about how to build an FEM model using two alternative scripting ways, by either **VBscript** or **IronPython**. The usage of each function looks the same no mater which scripting language we choose as I reckon they are both belonging to the object-oriented programming. However, my favourite scripting software is MATLAB, so I spent some time to find an approach to use MATLAB to realise my objective. Luckily, it works, by creating COM server[^2] and then calling VBscript object in MATLAB.

```matlab
% Define the activex scripting engine
Expand Down Expand Up @@ -1138,7 +1139,6 @@ Matrix data of $F(i,x)$, $L(i,x)$, and $\Phi(i,x)$:

**References**

[1] ANSYS Inc, Getting Started with Maxwell: A 2D Magnetostatic Solenoid Problem.

[2] [MATLAB actxserver - MathWorks](https://ww2.mathworks.cn/help/matlab/ref/actxserver.html).
[^1]: ANSYS Inc, Getting Started with Maxwell: A 2D Magnetostatic Solenoid Problem.
[^2]: [MATLAB `actxserver`](https://ww2.mathworks.cn/help/matlab/ref/actxserver.html).

14 changes: 13 additions & 1 deletion _posts/collections/theories/2024-05-30-Economic-and-Finance.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ title: Theories in Economic and Finance
categories:
- Collections
- Economics & Finance
- Sociology
- Uncertainty
date: 2024-05-30 21:03:45 +0800
last_modified_at: 2024-11-21 10:55:49 +0800
last_modified_at: 2024-11-26 14:29:02 +0800
---

## Dog walking theory (by Andre Kostolany)
Expand Down Expand Up @@ -164,3 +166,13 @@ The <i class="term">ratchet effect</i> is an economic process that is difficult
A ratchet effect is closely related to the idea of a <i class="term">positive feedback loop</i>. In addition, like releasing a mechanical ratchet used to compress a spring, the reversal of an economic process that involves a ratchet effect may be rapid, forceful, and difficult to control.

<br>

## Spontaneous order

> - [Spontaneous order](https://en.wikipedia.org/wiki/Spontaneous_order).
<i class="term">Spontaneous order</i>, also named <i class="term">self-organization</i> in the hard sciences, is the spontaneous emergence of order out of <i class="emphasize">seeming chaos</i>. The term "self-organization" is more often used for physical changes and biological processes, while "spontaneous order" is typically used to describe the emergence of various kinds of social orders in human social networks from the behavior of a combination of self-interested individuals who are <i class="emphasize">not intentionally trying to create order through planning</i>. Proposed examples of systems which evolved through spontaneous order or self-organization include the evolution of life on Earth, language, crystal structure, the Internet, Wikipedia, and free market economy.

In economics and the social sciences, spontaneous order has been defined by Hayek as "the result of <i class="emphasize">human actions</i>, not of <i class="emphasize">human design</i>".

In economics, spontaneous order has been defined as an equilibrium behavior among self-interested individuals, which is most likely to evolve and survive, obeying the natural selection process "survival of the likeliest".
2 changes: 2 additions & 0 deletions _posts/entertainment/musics/2022-07-13-Musics.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ published: false
- [逆光](https://www.youtube.com/watch?v=IC-VMP1NpZ0), 孙燕姿
- [不得不撒](https://www.youtube.com/watch?v=8gzMonsZwEU), KEY.L刘聪、盛宇、VaVa毛衍七、万妮达Vinida
- [隆里电丝](https://www.youtube.com/watch?v=RAvAhnNYiIs), KEY.L刘聪、ICE杨长青、盛宇、Ricky

<br>
File renamed without changes.
92 changes: 92 additions & 0 deletions _posts/hardware/2024-11-17-DUNU-Kima-Classic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
title: Electrostatic Discharge of DUNU Kima Classic Wired Headphones
toc: false
categories:
- Electrical Engineering
- Hardware
- Materials
tags:
- Electromagnetism
date: 2024-11-17 17:57:52 +0800
last_modified_at: 2024-11-26 14:02:40 +0800
---

Last year I bought a wired headphones, DUNU Kima Classic[^1][^5], and a DAC/AMP (digital-to-analog converter/amplifier), DUNU DTC500[^4], to use together. They are good, but electrostatic problems always trouble me. That is, when I am listening musics via the headphones connecting with my PC (or laptop), at the moment that I am charging iPhone or iPad or moving them while charging (happens nearby), or that encountering static electricity on clothes, my ears will feel electric shock. Not that seriously, but I still feel very uncomfortable. I won’t encounter such problems if I use Bluetooth headphones, and, this kind of problems happen whether I use DAC or not, so I guess they are just caused by the headphones. As in the official website, DUNU Kima Classic features[^1]:

<div class="quote--left" markdown="1">

- High-Quality DLC[^2][^3] Diaphragm Dynamic Driver.
- **Strong Magnetic Circuit Featuring N52 Neodymium Magnets**.
- Resonance Chamber Dual-Cavity Design.
- High-Airflow Design Architecture.
- High-Density Metallic Alloy Shells.
- All-New Color Scheme.
- Improved Tuning For Cleaner & More Transparent Sound.
- Ergonomic & Comfortable Shell Design.
- **High-Purity Single-Crystal Copper Silver-Plated Cable.**
- Standard 0.78mm 2-pin Connectors.
- 3.5mm Single-Ended Termination Plug.

</div>

It’s actually a dynamic speaker[^6][^7][^9] (a.k.a electrodynamic speaker driver[^8]):

<div class="quote--left" markdown="1">

The dynamic speaker was invented in 1925 by Edward W. Kellogg and Chester W. Rice. When the electrical current from an audio signal passes through its voice coil—a coil of wire capable of moving axially in a cylindrical gap containing a concentrated magnetic field produced by a permanent magnet—the coil is forced to move rapidly back and forth due to Faraday's law of induction; this attaches to a diaphragm or speaker cone (as it is usually conically shaped for sturdiness) in contact with air, thus creating sound waves. In addition to dynamic speakers, several other technologies are possible for creating sound from an electrical signal, a few of which are in commercial use.[^7]

</div>

<div class="quote--left" markdown="1">

The most common type of driver, commonly called a dynamic loudspeaker, uses a lightweight diaphragm, or cone, connected to a rigid basket, or frame, via a flexible suspension, commonly called a spider, that constrains a voice coil to move axially through a cylindrical magnetic gap. A protective dust cap glued in the cone's center prevents dust, most importantly ferromagnetic debris, from entering the gap.

When an electrical signal is applied to the voice coil, a magnetic field is created by the electric current in the voice coil, making it a variable electromagnet. The coil and the driver's magnetic system interact in a manner similar to a solenoid, generating a mechanical force that moves the coil (and thus, the attached cone). Application of alternating current moves the cone back and forth, accelerating and reproducing sound under the control of the applied electrical signal coming from the amplifier.[^8]

</div>

Basically, it utilizes current flowing through voice coil to generate magnetic field to move diaphragm to produce sound. BTW, I’m not sure, but I feel its structure looks like a solenoid with a permanent magnet in a way.

I searched for some information online. I found that this kind of phenomena are called ESD[^10] (Electrostatic Discharge), and there are several reasons for ESD generation[^11]. And, it flows from ears to the metal parts of headphones, rather than the opposite direction[^12]:

<div class="quote--left" markdown="1">
**Question**

Is it possible to be shocked by static electricity through headphones / earphones?

**Answer**

Yes, it is possible. In a cold climate with low humidity, it is easy to build up a static charge on one's body. As an example, wearing shoes with leather soles while shuffling one's feet on a wool carpet will often build up a substantial static charge. When a part of one's body touches an item that is grounded (like the screw on a switch wall plate), the body's static electricity will discharge to the grounded screw. The amount of electrical current in such a static discharge is not harmful, though the discharge itself can startle.

The cable that carries the audio signal from the headphone jack to the headphones / earphones has metallic wire inside. This wire is also a path to ground through which the static charge can travel. Though one's ears are touching the plastic parts of the headphones / earphones, there is metallic wire inside of the headphones / earphones. **A static charge often has a high enough voltage to leap from one's ear to the metal inside of the headphones /earphones, discharging the static electricity via the cable and into the device playing the audio signal, e.g., CD player or MP3 player.**

It is important to note that such static discharges are "acts of nature" and do not indicate that one's headphones / earphones are defective. **Nor will the static discharge cause harm to the headphones / earphones.**

</div>

Reference[^12] says that ESD has no harm for headphones, but as article[^10], “ESD events can have a negative impact on the lifespan of electronic devices.” and there should be some ESD protection in headphone design. I tend to believe the latter.

For my headphones, the equipped headphone cable, "High-Purity Single-Crystal Copper Silver-Plated Cable" (specifically, standard high-purity single-crystal copper silver-plated Litz cable[^13][^14]), can ensure sound quality in the transmission and reduce interference, but it can’t prevent ESD. I guess it may relate to aforementioned ear-to-headphone discharge direction.

<br>

**References**

- [DUNU Kima Classic Review](https://www.youtube.com/watch?v=6ct_DUt1RKo).

[^1]: [DUNU Kima Classic](https://www.dunu-topsound.com/product-page/copy-of-glacier).
[^2]: [Diamond-like carbon](https://en.wikipedia.org/wiki/Diamond-like_carbon).
[^3]: [KEFINE Klean 10mm DLC Diaphragm Dynamic Driver IEM](https://hifigo.com/products/kefine-klean?srsltid=AfmBOoo-iws4gaHCNIIoA61M2CMJs0P7x8wydcXkQM2_de6ZuIQsRO-I).

[^4]: [DUNU DTC 500 Portable USB DAC & AMP Headphone AMP Type-C To 3.5/4.4mm Outputs](https://hifigo.com/products/dunu-dtc500?srsltid=AfmBOoqagR3i73IJ6_b3pySXJbGI142VQvx4jPDh1gJLp6886N14d_xR).
[^5]: [DUNU达音科KIMA classic入耳式有线耳机typec苹果适用高音质hifi](https://detail.tmall.com/item.htm?app=chrome&bxsign=scddANwNMQ6EJwRCpFrihEYYod8PIgOnPb6QWDC8Ak-L3Srhv8NFHmzNrEdaIrv1AOc5VNmXkdhoDSjUfhc_HH1eNEJg-plh_gI36psRY9sYFmqa5YGi3e0sdX519Y_rydK&cpp=1&id=693910503368&price=899-1317&shareUniqueId=29324451215&share_crt_v=1&shareurl=true&short_name=h.TY28ZRBH0wnDLFD&sourceType=item&sp_tk=Wlg1MjNzMU5Oam0%3D&spm=a2159r.13376460.0.0&suid=CC8C0492-02CB-49CE-984A-A3CF6C4F36C4&tbSocialPopKey=shareItem&tk=ZX523s1NNjm&un=3d310f755c2dc6dabbeeeafdb2768e28&un_site=0&ut_sk=1.WeSDmX9SlUgDAHQITRU16K1w_21380790_1731917044054.Copy.1&wxsign=tbwMdLKE0oQS7Tau6pyUQtGOdsj10seBMWYBiC6MAew487WKfK3bO7Yq1QyUSxodZXGZiTcp-ZuvMfmviOToISmB8K6rQ53axk7q5Fl64mvZVHvkTft1b9jzvoMfQ0k3Wem).
[^6]: [闲扯HiFi耳机那些事儿:当\*级动圈遭遇\*级静电](https://post.smzdm.com/p/amm05klv/).
[^7]: [Loudspeaker](https://en.wikipedia.org/wiki/Loudspeaker).
[^8]: [Electrodynamic speaker driver](https://en.wikipedia.org/wiki/Electrodynamic_speaker_driver).

[^9]: [Headphones](https://en.wikipedia.org/wiki/Headphones).
[^10]: [“ESD Protection in Bluetooth Headphone Design: Ensuring Reliability and Longevity](https://www.romanearbuds.com/news/esd-protection-in-bluetooth-headphone-design-ensuring-reliability-and-longevity/).
[^11]: [Electrostatic Discharge (ESD) Explained for Wired Headsets](https://www.zebra.com/us/en/support-downloads/notifications/electrostatic-discharge-explained.html).
[^12]: [Static Electricity Discharge through Headphones / Earphones?](https://service.shure.com/s/article/static-electricity-discharge-through-headphones-earphones?language=en_US).
[^13]: [DUNU Kima Classic DLC Diaphragm Dynamic Driver IEMs](https://hifigo.com/products/dunu-kima-classic?rfsn=3270172.0d5635).
[^14]: [Litz wire](https://en.wikipedia.org/wiki/Litz_wire).
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: \"The poorest man may in his cottage bid defiance to all the forces of the Crown.\"
toc: false
categories:
- Quotes
date: 2024-11-26 14:37:58 +0800
last_modified_at: 2024-11-26 14:37:58 +0800
---

<div class="quote--left" markdown="1">

The poorest man may in his cottage bid defiance to all the forces of the Crown. It may be frail---its roof may shake---the wind may blow through it---the storm may enter---the rain may enter---but the King of England cannot enter!

speech, March 1763, in Lord Brougham *Historical Sketches of Statesmen in the Time of George III* First Series (1845) vol. 1.

</div>

**References**

- [William Pitt, Earl of Chatham](https://www.oxfordreference.com/display/10.1093/acref/9780191826719.001.0001/q-oro-ed4-00008331).
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: \"Freedom is never more than one generation away from extinction.\"
toc: false
categories:
- Quotes
date: 2024-11-20 23:54:29 +0800
last_modified_at: 2024-11-26 13:42:40 +0800
---

<br>

<iframe class="iframe--video" width="560" height="315" src="https://www.youtube.com/embed/SDouNtnR_IA?si=h4NKrIwiM6uttztQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

<br>

**References**

- [Freedom is never more than one generation away from extinction](https://www.youtube.com/watch?v=SDouNtnR_IA).
- [Quote by Ronald Reagan: “Freedom is never more than one generation away ...”](https://www.goodreads.com/quotes/13915-freedom-is-never-more-than-one-generation-away-from-extinction).
- [January 5, 1967: Inaugural Address (Public Ceremony)](https://www.reaganlibrary.gov/archives/speech/january-5-1967-inaugural-address-public-ceremony).
8 changes: 7 additions & 1 deletion _posts/unpublished/2024-11-20-Tech-News.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ toc: false
categories:
- Collections
date: 2024-11-20 12:15:06 +0800
last_modified_at: 2024-11-20 12:15:06 +0800
last_modified_at: 2024-11-25 14:22:45 +0800
published: false
---

Expand Down Expand Up @@ -32,5 +32,11 @@ published: false
- Oct. 13, 2024: [Blastoff! SpaceX Starship launches on 5th flight, nails 'chopsticks' booster catch!](https://www.youtube.com/watch?v=b28zbsnk-48).
- Nov 20, 2024: [Blastoff! SpaceX launches Starship on 6th flight, booster catch called off](https://www.youtube.com/watch?v=0d92Loot46M).
- [星舰试飞略微翻车?特朗普亲临现场,但SpaceX却没能“筷子夹火箭”](https://mp.weixin.qq.com/s/9sm8wEg2cPw3tbd3Lk5hgA).
- Nov 24, 2024: [可口可乐全AI广告,只有30s,却给人留下终生阴影](https://mp.weixin.qq.com/s/fcncgHjZzVBAO2lCGge-1g).
- [The Holiday Magic is coming.](https://www.youtube.com/watch?v=4RSTupbfGog).
- [Nike - Never Done Evolving, ft Serena (case study)](https://www.youtube.com/watch?v=2ehJczf2FEk).
- [Never Done Evolving](https://www.akqa.com/work/nike/nike-50th-anniversary/never-done-evolving/).
- [Vid2Player: Controllable Video Sprites that Behave and Appear like Professional Tennis Players](https://cs.stanford.edu/~haotianz/vid2player/).


<br>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Highlight Text in HTML Webpages by `<mark>` Element
title: Highlight Text in HTML Webpages by `<mark>` Tag
toc: false
categories:
- Web Development
Expand Down
File renamed without changes.

0 comments on commit a79d427

Please sign in to comment.