Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

boundary integral

More
5 years 4 weeks ago #1507 by noname
boundary integral was created by noname
Hello everyone,

I have done some NS analysis and now want to do some post-processing using my results, I want to calculate my lift and drag over a certain part of the boundary (i.e its a surface integral). I have my functional defined and I use following line to calculate the drag
Code:
c_d = Integrate(cf=Drag(u_h,p0), mesh=mesh, VOL_or_BND=BND, definedon=mesh.Boundaries("cyl"), order=1)

but i get the error

netgen.libngpy._meshing.NgException: GridFunctionCoefficientFunction: SIMD: don't know how I shall evaluate


Anyone knows what this is?

Thanks in advance.
More
5 years 4 weeks ago #1509 by christopher
Replied by christopher on topic boundary integral
My guess is, that you need to use the trace operator for the HDiv function if you want to evaluate on the boundary, so do u_h.Trace(), but if you provide an example it would be easier.
Best Christopher
Time to create page: 0.118 seconds