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

Unable to Apply no_penetration LCBC #1058

Open
YasamanNemati opened this issue Jan 10, 2024 · 3 comments
Open

Unable to Apply no_penetration LCBC #1058

YasamanNemati opened this issue Jan 10, 2024 · 3 comments

Comments

@YasamanNemati
Copy link

Hello SfePy Community,

I am working on modeling the effects of veins on a resistivity tool in a borehole. For simplification, I'm starting with a basic cube made from a single material. In my model, I apply a potential to the two ends of the cylinder and aim to enforce a no-penetration boundary condition. However, I'm encountering difficulties in correctly applying this linear combination boundary condition (LCBC).
You can view my full script and mesh here:
code-and-mesh.zip

this is the error I receive:
ValueError: assertion failed!

Could this be an issue with how I am specifying the DOFs or regions for the no penetration LCBC? Or is there something else I'm missing in my LCBC and region definitions? Also, can you please let me know if I need to add anything to my equation in order to consider the defined lcbc? I'm so confused.

Any help troubleshooting would be greatly appreciated.

Thanks!

@rc
Copy link
Member

rc commented Jan 17, 2024

I have not yet had time to look at your code, but note that specifying LCBCs can be tricky, so there is an alternative - a penalty term, see [1]. Maybe that would work for you?

[1] http://sfepy.org/doc-devel/examples/navier_stokes-stokes_slip_bc.html

@rc
Copy link
Member

rc commented Jan 17, 2024

Also compare [2], [3].

[2] http://sfepy.org/doc-devel/examples/multi_physics-biot_npbc.html
[3] http://sfepy.org/doc-devel/examples/multi_physics-biot_npbc_lagrange.html

@YasamanNemati
Copy link
Author

Thank you so much. I tried to follow the steps in these examples, but I'm still unable to apply the no_penetration condition for my model. Do you have any other suggestions? I'd really appreciate it.

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

2 participants