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

Thermal properties temperature dependent #26

Open
RemDelaporteMathurin opened this issue Aug 8, 2018 · 4 comments
Open

Thermal properties temperature dependent #26

RemDelaporteMathurin opened this issue Aug 8, 2018 · 4 comments
Assignees
Labels
easy enhancement New feature or request

Comments

@RemDelaporteMathurin
Copy link
Owner

Coucou

@RemDelaporteMathurin RemDelaporteMathurin added enhancement New feature or request easy labels Aug 8, 2018
@RemDelaporteMathurin RemDelaporteMathurin added this to To do in Generic 3-MOT via automation Aug 8, 2018
@shimwell
Copy link
Collaborator

shimwell commented Aug 8, 2018

We would need to change the following functions in 3-MOTtiedup.py

calculate_specific_heat()
calculate_density_heat()
calculate_thermal_conductivity_heat()

@shimwell
Copy link
Collaborator

shimwell commented Aug 8, 2018

Perhaps as a first attempt we could use some simple SciPy interpolation as demonstrated here

https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html#scipy.interpolate.interp1d

@shimwell shimwell moved this from To do to In progress in Generic 3-MOT Aug 8, 2018
@RemDelaporteMathurin
Copy link
Owner Author

Could this be done in an external library ?

@RemDelaporteMathurin
Copy link
Owner Author

RemDelaporteMathurin commented Aug 16, 2018

Hey @shimwell look what I found!

ft11_magnetostatics.py.zip

class Permeability(Expression):
def init(self, markers, **kwargs):
self.markers = markers def eval_cell(self, values, x, cell):
if self.markers[cell.index] == 0:
values[0] = 4pi1e-7 # vacuum
elif self.markers[cell.index] == 1:
values[0] = 1e-5 # iron (should really be 6.3e-3)
else:
values[0] = 1.26e-6 # copper

mu = Permeability(markers, degree=1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy enhancement New feature or request
Projects
Generic 3-MOT
  
To verify
Development

No branches or pull requests

2 participants