-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Model solver name and operation as data properties #38
base: main
Are you sure you want to change the base?
Conversation
adapter-config-schema/preatcs.json
Outdated
"Velocity", | ||
"Temperature", | ||
"Heat-Flux", | ||
"Force1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something we want to give as an example and, hence, encourage it?
What was the inspiration for this example in the first place (I know it was introduced earlier)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tapegoji @BenjaminRodenberg @mathiskelm @IshaanDesai @vidulejs @MakisH @dabele: Does this cover your requirements?
Yes, this will do for my side.
I envision transferring Joule-Heat from Elmer to preCICE in some of the applications for Volume to Volume coupling. If we can give example for volume-to-volume coupling, it might be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `name`, not `precice_data_name` as property name: "data" is covered in the object name and "precice" should be clear enough (it is also `mesh_name`, not `precice_mesh_name`)
Sounds clear, especially since it is the first (required) field.
* `solver_name`, not `adapter_name` as property name: It is a name given by the solver, not the adapter if I understood the situation the right way
Correct, good point.
For the example: why blob
as operation
?
This is as discussed, so I guess it would cover all the use cases we had in mind when proposing this distinction.
The proposed schema covers the existing requirements 👍 |
I agree with your suggestions and would just like to say a few words from my perspective. Having a separate As for the |
Alternative suggested by @BenjaminRodenberg: instead of having read and write data as a list, make it a dictionary (see #18 (comment)). in the figure, read_data uses the old array structure and write data the new dict structure. What do you think about it? @uekerman The schema with both using a dict:
Note that then the user will no longer get suggestions for the read data or write data names. |
This would indeed be a drawback. Similarly, we cannot check against a pattern, right? How would it look like if we don't specify "Force": {} ? |
Yes it would look like this. |
Closes #36
Current suggestions
name
, notprecice_data_name
as property name: "data" is covered in the object name and "precice" should be clear enough (it is alsomesh_name
, notprecice_mesh_name
)solver_name
, notadapter_name
as property name: It is a name given by the solver, not the adapter if I understood the situation the right wayAlso have a look at the descriptions in the schema. These will be our documentation.
Some examples
In JSON with all options:
In YAML with only required options:
To further test the schema, I can always recommend testing with the Meta Configurator.
Review