Prescribing values for ohmic heating #1622
Replies: 3 comments 2 replies
-
|
Hi! Thanks for your question. I agree that the PRESCRIBED mode documentation is a bit weak at the moment, that's probably partly my fault! Firstly, in the specific case where you want no ohmic heating, you can just omit the ohmic source from the sources list, which represents ohmic heating only. However, note that this will not completely eliminate ohmic current. To eliminate the ohmic current, the best thing at the moment is to use the For PRESCRIBED mode in general, a few things to note:
The correct way of prescribing a fixed flat profile at value 'ohmic': {
'mode': 'PRESCRIBED',
'prescribed_values': (([0.0], [0.0], [[x]]),),
} |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your reply! Is it correct that if I want to set the following ohmic heating scheme: Then the configuration should be Also, if I can only estimate an average ohmic heating by vloop * ip in the dataset, how should I set the configuration accordingly? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks a lot :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I hope this message finds you well.
I attempted to assign values for ohmic heating in the configuration. I tried the following two ways, and both failed.
Method 1: ohmic = {
'mode': 'PRESCRIBED',
'prescribed_values': ([0.0], [0.0], [0.0]), # time, rho, ohmic
}
Error message:
Value error, Input to TimeVaryingArray unsupported. Input was of type: <class 'list'> [type=value_error, input_value=[0.0], input_type=list]
For further information visit https://errors.pydantic.dev/2.11/v/value_error
Method 2: ohmic = {
'mode': 'PRESCRIBED',
'prescribed_values': {0.0: ([0.0], [0.0])}, # time: (rho, ohmic)
}
Error message:
ValidationError: 1 validation error for ToraxConfig
sources.ohmic.standard.prescribed_values
Input should be a valid tuple [type=tuple_type, input_value={0.0: ([0.0], [0.0])}, input_type=dict]
I wonder if it is possible to give an example.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions