-
Notifications
You must be signed in to change notification settings - Fork 71
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
Order of Param makes a difference. #377
Comments
All TCLB XML is write-to-TLCB-as-you-read-XML, so yes - order matters. This is why warnings are displayed in your case (check output) We would need a DOM XML model, not a parser to handle it properly |
To add bit more context: Without DOM model (build object tree then execute, implement LBM node's claims?) it's not easy to distinguish if a node was written too or not. There is warning in when you write to non-zero value for that case IMHO One think that could be implemented is that Param without zone MUST always be triggered first, if not fail. BTW: XML standard assures that <Param name="PhaseField_init" value="0.0"/>
<Param name="PhaseField_init" value="1.0" zone="water"/> is different from <Param name="PhaseField_init" value="1.0" zone="water"/>
<Param name="PhaseField_init" value="0.0"/> Think of it as python's list of dicts. So it's predictable output. |
"Param without zone MUST always be triggered first" This is not such a bad idea. I vote yes @TravisMitchell any comments? |
I think a trigger for this is a good idea. If the user is overwriting their zonal value, I think we can assume it is not done on purpose and the code should flag this too them. Vote: yes |
What is/(shall be) the expected behaviour for the config below? <Geometry nx="256" ny="256">
<CM><Box/></CM>
<None name="lava">Box ny="48" nx="32"/></None>
<None name="water">Box ny="96" nx="32"/></None>
</Geometry>
<Model>
<Param name="PhaseField_init" value="0.0"/>
<Param name="PhaseField_init" value="1.0" zone="water"/>
<Param name="PhaseField_init" value="-1.0" zone="lava"/>
</Model>
|
@ggruszczynski I think Michał's suggestion kind of makes sense, that you have to put all the |
I found that
Order of Param in Model
makes a difference.I thought that only
Order of <Boxes> in Geometry
makes a difference.My configuration:
I was running with GPU SERIAL CUDA
I was running with:
In
https://github.com/CFD-GO/TCLB/blob/develop/example/multiphase/d2q9_pf_velocity/mrt_dam_break.xml
https://github.com/CFD-GO/TCLB/blob/develop/example/multiphase/d2q9_pf_velocity/cm_dam_break.xml
Order of
Param
makes a difference. I get this error:No water:
Good:
The text was updated successfully, but these errors were encountered: