Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electrode Area is not a parameter of the coil Component #9

Open
Twilightdonkey opened this issue Nov 19, 2024 · 0 comments
Open

Electrode Area is not a parameter of the coil Component #9

Twilightdonkey opened this issue Nov 19, 2024 · 0 comments

Comments

@Twilightdonkey
Copy link

What is wrong:

The generated .definition file does not contain a definition of the electrode area, even though it references a "Ae_" variable. When looking at the example .definition files, either the variable is defined under the "Component parameters" or set directly.

Now, I could just modify the generated .definition file, but wouldn't that beat the purpose of having a generator?

looking at the pregenerated .definition file in the elmag repo

! Parameters in Component 1: Coil1 $ N_Coil1 = 1 ! Number of Turns $ R_Coil1 = 0 ! Coil Resistance $ Ns_Coil1 = 1 ! Sector/Symmetry Coefficient (e.g. 4 is 1/4 of the domain) $ Ae_Coil1 = 0.0025 ! Electrode Area (dummy for now change as required) <--- this parameter

but when I run the main.py script the definition file does not generate the parameter definition

! Parameters in Component 1: Coil1 $ N_Coil1 = 1 ! Number of Turns $ R_Coil1 = 0 ! Coil Resistance $ Ns_Coil1 = 1 ! Sector/Symmetry Coefficient (e.g. 4 is 1/4 of the domain)

Is this intended feature or is it a bug? I can see that the ElmerComponent does not implement a electrode area trait, neither does the generation code generate the necessary parameter.

Steps to reproduce

Run the script in the elmag repository "elmer-elmag\CircuitBuilder\3D\stranded\closed\transient\main.py". The .definition file will reference a parameter called "Ae_Coil1", although it is not defined anywhere.

Note that I am very new to Elmer and circuit builder, so there might be something I'm missing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant