WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@AbdAlazezAhmed
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@termi-official termi-official left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments

Comment on lines +41 to +43
[sources]
OrdinaryDiffEqOperatorSplitting = {url = "https://github.com/SciML/OrdinaryDiffEqOperatorSplitting.jl.git", rev = "main"}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[sources]
OrdinaryDiffEqOperatorSplitting = {url = "https://github.com/SciML/OrdinaryDiffEqOperatorSplitting.jl.git", rev = "main"}

OrdinaryDiffEqCore = "1"
OrdinaryDiffEqLowOrderRK = "1.2.0"
OrdinaryDiffEqOperatorSplitting = "0.1"
OrdinaryDiffEqOperatorSplitting = "0.2"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
OrdinaryDiffEqOperatorSplitting = "0.2"
OrdinaryDiffEqOperatorSplitting = "0.2.1"

Comment on lines +18 to +19
[sources]
OrdinaryDiffEqOperatorSplitting = {url = "https://github.com/SciML/OrdinaryDiffEqOperatorSplitting.jl.git", rev = "main"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[sources]
OrdinaryDiffEqOperatorSplitting = {url = "https://github.com/SciML/OrdinaryDiffEqOperatorSplitting.jl.git", rev = "main"}

return semidiscrete_problem
end

function Thunderbolt.semidiscretize(coupled_model::ElectroMechanicalCoupledModel, discretizations::Tuple, meshes::Tuple{<:Thunderbolt.AbstractGrid, <:Thunderbolt.AbstractGrid})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some annotation that this semidiscretizes splits the model? E.g. PhyiscalSplit{Elec....}?

Comment on lines +12 to +13
ep_index::Int
mech_index::Int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do these indices refer to?

function OS.backward_sync_external!(outer_integrator::OS.OperatorSplittingIntegrator, inner_integrator::DiffEqBase.DEIntegrator, sync::ElectroMechanicalSynchronizer) # Tying holds a buffer for the 3D problem with some meta information about the 0D problem
u_mech_flat = inner_integrator.u
u_mech = sync.cache.u_mech
dim = Ferrite.getrefdim(Ferrite.getfieldinterpolation(inner_integrator.f.dh, (1,1)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we relax this to not query the first sdh?

∇u_mech.data .= Ref(diagm(Tensor{2,dim}, 1.0)) .+ ∇u_mech.data
I4_mech = sync.cache.I4_mech
proj = L2Projector(dh.grid)
for sdh in dh.subdofhandlers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we query the relevant subdofhandlers here?

end
I4_vecs = sync.cache.I4_vecs
cell_idx = 1
for sdh in dh.subdofhandlers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we query the relevant subdofhandlers here?

function OS.forward_sync_external!(outer_integrator::OS.OperatorSplittingIntegrator, inner_integrator::DiffEqBase.DEIntegrator, sync::ElectroMechanicalSynchronizer)
# Tying holds a buffer for the 3D problem with some meta information about the 0D problem
calcium_field_coeff = inner_integrator.cache.inner_solver_cache.op.integrator.volume_model.material_model.contraction_model.calcium_field
calcium_state_idx = get_calcium_state_idx(outer_integrator.subintegrator_tree[1][2].f.ode)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we query the indices from sync?

function ElectroMechanicalSynchronizer(transfer_op_EP_Mech, transfer_op_Mech_EP)
qrc=Thunderbolt.QuadratureRuleCollection(1)
dh = transfer_op_EP_Mech.dh_to # mechanical dh
dim = Ferrite.getrefdim(Ferrite.getfieldinterpolation(dh, (1,1)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we relax this to not query the first sdh?

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

Successfully merging this pull request may close these issues.

3 participants